import { HttpConfig } from "../types"; import { CacheManager, CacheManagerOption } from "./CacheManager"; export type StorageCacheManagerOption = { bucket?: Storage; } & CacheManagerOption; export declare class StorageCacheManager implements CacheManager { private _usedSpace; private _availableSpace; private _options; constructor(bucket: Storage, options?: StorageCacheManagerOption); 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): Promise; clear(): Promise; find(cond: (key: string) => boolean): Promise; private _resolve; }