import { CacheDriverInterface, CacheManagerInterface } from "./types.mjs"; //#region ../cache/src/CacheManager.d.ts /** * The cache facade. * * Every storage-touching method forwards to the active driver and * returns the driver's promise, so swapping localStorage for IndexedDB * (or for a driver of your own that talks to a remote store) does not * change a single call site. Driver configuration — prefix, value * parser, value converter — stays synchronous and chainable. */ declare class CacheManager implements CacheManagerInterface { /** * Cache Driver Engine */ private driver; /** * Set driver engine */ setDriver(driver: CacheDriverInterface): this; /** * Get driver engine */ getDriver(): CacheDriverInterface; /** * Set cache into storage */ set(key: string, value: any, expiresAfter?: number): Promise; /** * Get value from cache engine, if key does not exist return default value */ get(key: string, defaultValue?: any): Promise; /** * Determine whether the cache engine has the given key */ has(key: string): Promise; /** * Remove the given key from the cache storage */ remove(key: string): Promise; /** * List the caller-facing keys owned by the active driver */ keys(): Promise; /** * Read every live entry owned by the active driver */ getAll(): Promise>; /** * Set prefix key */ setPrefixKey(key: string): any; /** * Get prefix key */ getPrefixKey(): string; /** * {@inheritDoc} */ setValueParser(parser: any): CacheDriverInterface; /** * {@inheritDoc} */ setValueConverter(converter: any): CacheDriverInterface; /** * Clear the cache storage */ clear(): Promise; } declare const cacheManager: CacheManager; //#endregion export { CacheManager, cacheManager }; //# sourceMappingURL=CacheManager.d.mts.map