export interface CacheItem { count: number; data: T; } export declare class CountedCache { private caches; private count; get length(): number; getAll(): Array<[string, CacheItem]>; clear(): void; has(key: string): boolean; set(key: string, value: T): void; get(key: string): T | null; remove(key: string): void; }