/// import Koa from 'koa'; declare type CacheEntry = { saved: Date; expires: Date; headers: string; payload: string; }; export declare class MemoryCache { private store; private config; clearCache(): Promise; cacheContent(key: string, headers: { [key: string]: string; }, payload: Buffer): void; getCachedContent(ctx: Koa.Context, key: string): CacheEntry | null | undefined; removeEntry(key: string): void; middleware(): (ctx: Koa.Context, next: () => Promise) => Promise; invalidateHandler(): (ctx: Koa.Context, url: string) => Promise; private handleInvalidateRequest; private handleRequest; clearAllCacheHandler(): (ctx: Koa.Context) => Promise; private handleClearAllCacheRequest; } export {};