extractStyle.d.ts 855 B

12345678910111213
  1. import type Cache from './Cache';
  2. declare const ExtractStyleFns: {
  3. style: import("./hooks/useGlobalCache").ExtractStyle<[styleStr: string, tokenKey: string, styleId: string, effectStyle: Record<string, string>, clientOnly: boolean | undefined, order: number]>;
  4. token: import("./hooks/useGlobalCache").ExtractStyle<[token: any, hashId: string, realToken: any, cssVarStr: string, cssVarKey: string]>;
  5. cssVar: import("./hooks/useGlobalCache").ExtractStyle<[cssVarToken: import("./util/css-variables").TokenWithCSSVar<any, Record<string, any>>, cssVarStr: string, styleId: string, cssVarKey: string]>;
  6. };
  7. type ExtractStyleType = keyof typeof ExtractStyleFns;
  8. export default function extractStyle(cache: Cache, options?: boolean | {
  9. plain?: boolean;
  10. types?: ExtractStyleType | ExtractStyleType[];
  11. once?: boolean;
  12. }): string;
  13. export {};