import Logger from '../services/logger.js'; import Cache from '../services/cache.js'; import type { Request, Response } from 'express'; export declare const defaultHashStrategy: (obj: T) => T; export declare const defaultHeadersFilter: (res: Response) => Array<[string, string]>; export declare const requestToCacheKey: (req: Request, hashStrategy?: unknown) => string; interface ViewCacheOptions { ttl?: number | string | null; headersFilter?: (res: Response) => Array<[string, string]>; hashStrategy?: unknown; namespace?: string; } declare function ViewCacheMiddleware(cache: Cache, logger: Logger): (options?: ViewCacheOptions | number | string | null) => import("express").RequestHandler>; export default ViewCacheMiddleware;