import { ICacheItemPolicy } from "./cache-item-policy"; import { CacheItemRemovedEventEmitter } from "./cache-item-removed-event-emitter"; export declare class Cache { static readonly instance: Cache; static readonly defaultPollingInterval: number; private _map; private _pollingInterval; private _pollingIntervalTimer; private _cacheItemRemovedEventEmitter; constructor(); pollingInterval: number; readonly cacheItemRemovedEventEmitter: CacheItemRemovedEventEmitter; readonly count: number; contains(key: string): boolean; set(key: string, value: T, policy?: ICacheItemPolicy): void; add(key: string, value: T, policy?: ICacheItemPolicy): boolean; addOrGetExisting(key: string, value: T, policy?: ICacheItemPolicy): T | any; get(key: string): T | null; remove(key: string): any; dispose(): void; private removeItem(item, reason); private isExpired(item, now?); private initPollingInterval(); private onPolling(); }