import { HttpConfig } from "../types"; import { CacheManager, CacheManagerOption } from "./CacheManager"; export type MapCacheManagerOption = { maxEntries?: number; } & CacheManagerOption; export declare class MapCacheManager implements CacheManager { private _entriesCount; private _options; protected static instance: MapCacheManager; constructor(options?: MapCacheManagerOption); static getInstance(options?: MapCacheManagerOption): MapCacheManager; usedSpace(): Promise; availableSpace(): Promise; calculateSpace(_: string | HttpConfig, __: T): Promise; has(configOrKey: string | HttpConfig): Promise; get(configOrKey: string | HttpConfig): Promise<{ date: Date; value: T; } | undefined>; getValue(configOrKey: string | HttpConfig): Promise; set(configOrKey: string | HttpConfig, value: T): Promise; remove(configOrKey: string | HttpConfig): Promise; clear(): Promise; find(cond: (key: string) => boolean): Promise; private _resolve; }