export interface CachedResult { statusCode: number; responseText: string; nextPage: string | null; contentType: string | null; statusText: string; } export interface CacheKey { url: string; config?: RequestInit; } export type ToCacheFn = (key: CacheKey, result: CachedResult) => Promise; export type FromCacheFn = (key: CacheKey) => Promise; export type Cache = { write: ToCacheFn; read: FromCacheFn; cacheId: string | undefined; }; export declare function fileCache({ cacheDir, compression }: { cacheDir: string; compression: "gz" | undefined; }): Cache; //# sourceMappingURL=cache.d.ts.map