import { NextCacheHandlerContext, CacheHandlerContext, CacheEntry, IncrementalCacheValue, CacheConfig, CacheHandler } from '../src/types'; export declare enum HEADER_DEVICE_TYPE { Desktop = "cloudfront-is-desktop-viewer", Mobile = "cloudfront-is-mobile-viewer", SmartTV = "cloudfront-is-smarttv-viewer", Tablet = "cloudfront-is-tablet-viewer" } export declare class CacheError extends Error { readonly cause?: unknown; constructor(message: string, cause?: unknown); } export declare class CacheKeyError extends CacheError { constructor(message: string, cause?: unknown); } export declare const CURRENT_CACHE_KEY_HEADER_NAME = "x-current-cache-key"; export declare class Cache implements CacheHandler { private static config; nextOptions: NextCacheHandlerContext; cookieCacheKey: string; queryCacheKey: string; pageCacheKey: string; deviceCacheKey: string; serverCacheDirPath: string; isAppRouter: boolean; constructor(nextOptions: NextCacheHandlerContext); buildCacheKey(keys: string[], data: Record, prefix: string): string; buildCookiesCacheKey(): string; buildQueryCacheKey(): string; private parseQueryString; getCurrentDeviceType(): string; buildPageCacheKey(): string; checkIsStaleCache(pageData: CacheEntry): boolean; checkIsPathToCache(pageKey: string): boolean; removeSlashFromStart(value: string): string; get(pageKey: string): Promise; private transformCacheData; set(pageKey: string, data: IncrementalCacheValue | null, ctx: CacheHandlerContext): Promise; revalidateTag(tags: string | string[]): Promise; static setConfig(config: Partial & { noCacheMatchers: (RegExp | string)[]; }>): typeof Cache; }