uni-nvue-styler.d.ts 1000 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { Container } from 'postcss';
  2. import { Document as Document_2 } from 'postcss';
  3. import type { Plugin as Plugin_2 } from 'postcss';
  4. import postcss from 'postcss';
  5. import { Root } from 'postcss';
  6. export declare function expand(options: NormalizeOptions): Plugin_2;
  7. export declare function normalize(opts?: NormalizeOptions): Plugin_2;
  8. declare interface NormalizeOptions {
  9. logLevel?: 'NOTE' | 'WARNING' | 'ERROR';
  10. type?: 'nvue' | 'uvue';
  11. platform?: typeof process.env.UNI_UTS_PLATFORM;
  12. }
  13. export declare function objectifier(node: Root | Document_2 | Container | null, { trim }?: {
  14. trim: boolean;
  15. }): Record<string, unknown>;
  16. export declare function parse(input: string, options?: ParseOptions): Promise<{
  17. code: string;
  18. messages: postcss.Message[];
  19. }>;
  20. declare interface ParseOptions extends NormalizeOptions {
  21. filename?: string;
  22. map?: boolean;
  23. mapOf?: string;
  24. ts?: boolean;
  25. chunk?: number;
  26. noCode?: boolean;
  27. trim?: boolean;
  28. }
  29. export { }