34 lines
946 B
TypeScript
34 lines
946 B
TypeScript
import { Container } from 'postcss';
|
|
import { Document as Document_2 } from 'postcss';
|
|
import type { Plugin as Plugin_2 } from 'postcss';
|
|
import postcss from 'postcss';
|
|
import { Root } from 'postcss';
|
|
|
|
export declare function expand(options: NormalizeOptions): Plugin_2;
|
|
|
|
export declare function normalize(opts?: NormalizeOptions): Plugin_2;
|
|
|
|
declare interface NormalizeOptions {
|
|
logLevel?: 'NOTE' | 'WARNING' | 'ERROR';
|
|
type?: 'nvue' | 'uvue';
|
|
platform?: typeof process.env.UNI_UTS_PLATFORM;
|
|
}
|
|
|
|
export declare function objectifier(node: Root | Document_2 | Container | null): Record<string, unknown>;
|
|
|
|
export declare function parse(input: string, options?: ParseOptions): Promise<{
|
|
code: string;
|
|
messages: postcss.Message[];
|
|
}>;
|
|
|
|
declare interface ParseOptions extends NormalizeOptions {
|
|
filename?: string;
|
|
map?: boolean;
|
|
mapOf?: boolean;
|
|
ts?: boolean;
|
|
chunk?: number;
|
|
noCode?: boolean;
|
|
}
|
|
|
|
export { }
|