index.d.ts 767 B

123456789101112131415
  1. export declare function memoResult<T extends object, R>(callback: () => R, deps: T[]): R;
  2. /**
  3. * Flatten token to string, this will auto cache the result when token not change
  4. */
  5. export declare function flattenToken(token: any): string;
  6. /**
  7. * Convert derivative token to key string
  8. */
  9. export declare function token2key(token: any, salt: string): string;
  10. export declare function supportLayer(): boolean;
  11. export declare function supportWhere(): boolean;
  12. export declare function supportLogicProps(): boolean;
  13. export declare const isClientSide: boolean;
  14. export declare function unit(num: string | number): string;
  15. export declare function toStyleStr(style: string, tokenKey?: string, styleId?: string, customizeAttrs?: Record<string, string>, plain?: boolean): string;