import { CacheFactory, ICacheConfig } from '../tools'; export declare enum CACHE_TYPE { LRU = 0, INFINITE = 1 } export declare class CacheMiddleware { protected config?: ICacheConfig; protected cache: CacheFactory; constructor(config?: ICacheConfig); private static TimingStart; private static TimingEnd; middleWare(type?: CACHE_TYPE): (req: any, res: any, next: (err?: any) => void) => Promise; } export declare const lru: (options?: ICacheConfig) => (req: any, res: any, next: (err?: any) => void) => Promise; export declare const infinite: (options?: ICacheConfig) => (req: any, res: any, next: (err?: any) => void) => Promise;