import { HttpConfig } from "../types"; import { CacheManager, CacheManagerOption } from "./CacheManager"; export type CookieCacheManagerOption = { bucket?: { cookie: string; }; } & CacheManagerOption; export declare class CookieCacheManager implements CacheManager { private _usedSpace; private _availableSpace; private _options; protected static instance: CookieCacheManager; constructor(options?: CookieCacheManagerOption); static getInstance(options?: CookieCacheManagerOption): CookieCacheManager; 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; }