cacheMapUtil.d.ts 647 B

1234567891011121314
  1. export declare const ATTR_CACHE_MAP = "data-ant-cssinjs-cache-path";
  2. /**
  3. * This marks style from the css file.
  4. * Which means not exist in `<style />` tag.
  5. */
  6. export declare const CSS_FILE_STYLE = "_FILE_STYLE__";
  7. export declare function serialize(cachePathMap: Record<string, string>): string;
  8. /**
  9. * @private Test usage only. Can save remove if no need.
  10. */
  11. export declare function reset(mockCache?: Record<string, string>, fromFile?: boolean): void;
  12. export declare function prepare(): void;
  13. export declare function existPath(path: string): boolean;
  14. export declare function getStyleAndHash(path: string): [style: string | null, hash: string];