import { HttpConfig } from "../types"; import { CacheManager, CacheManagerOption } from "./CacheManager"; export type IndexDbCacheManagerOption = CacheManagerOption & { maxSize?: number; storeName?: string; }; export declare class IndexDbCacheManager implements CacheManager { private _usedSpace; private _availableSpace; private _connectionStatus; private _options; protected static instance: IndexDbCacheManager; private _sizeTrackerKey; constructor(options?: IndexDbCacheManagerOption); static getInstance(options?: IndexDbCacheManagerOption): IndexDbCacheManager; usedSpace(): Promise; availableSpace(): Promise; calculateSpace(configOrKey: string | HttpConfig, value: 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, resolve?: { exists: boolean; key: string; }): Promise; clear(): Promise; find(cond: (key: string) => boolean): Promise; private _getEntryFromDb; private getEntryFromDb; private _putEntryInDb; private putEntryInDb; private setInstanceVariables; private _resolve; }