import type { Request, Response, NextFunction } from 'express'; import { Options } from 'http-proxy-middleware'; import type { Cache } from './caches/types.js'; import { CacheKeyModifier } from './utils-browser-only.js'; type RequestWithCache = Request & { _hasCache: { id: string; timeout: number; }; }; export declare const createProxyCacheMiddleware: >(queryCache: T, cacheKeyModifier?: CacheKeyModifier) => (proxyConfig: Options) => { proxyMiddleware: import("http-proxy-middleware").RequestHandler; directiveMiddleware: (req: RequestWithCache, response: Response, next: NextFunction) => Promise>>; }; export {};