export declare function resolveCacheDir(projectRoot: string, cacheDir?: string): string;
export declare function cacheKey(input: string): string;
export declare function readCache(cacheDir: string, key: string): Buffer | undefined;
export declare function readCacheText(cacheDir: string, key: string): string | undefined;
export declare function writeCache(cacheDir: string, key: string, data: Buffer | string): void;
export declare function fetchAndCache(url: string, cacheDir: string, headers?: Record<string, string>): Promise<Buffer>;
export declare function fetchTextAndCache(url: string, cacheDir: string, headers?: Record<string, string>): Promise<string>;
