import type { Request } from "./../request"; import { Response } from "./../response"; export type CacheMiddlewareOptions = { /** * Cache key */ cacheKey: string | ((request: Request) => string) | ((request: Request) => Promise); /** * If true, then the response will be cached based on the current locale code * This is useful when you have a multi-language website, and you want to cache the response based on the current locale * * @default true */ withLocale?: boolean; /** * List of keys from the response object to omit from the cached response * * @default ['user'] */ omit?: string[]; /** * Expires after number of seconds */ expiresAfter?: number; /** * Cache driver * * @see config/cache.ts: drivers object * @default memory */ driver?: string; }; export declare function cacheMiddleware(responseCacheOptions: CacheMiddlewareOptions | string): (request: Request, response: Response) => Promise; //# sourceMappingURL=cache-response-middleware.d.ts.map