import type { AsyncCacheStore } from './asyncCacheStore'; export declare class CacheManager { private store; constructor(store: AsyncCacheStore); static create(store: AsyncCacheStore): CacheManager; get(key: string): Promise; getNormal(key: string): Promise; set(key: string, value: T, ttl?: number): Promise; delete(key: string): Promise; has(key: string): Promise; } export declare const requestCache: { memoryCache: AsyncCacheStore; persistCache: AsyncCacheStore; }; export declare function injectCache(memoryCache: AsyncCacheStore, persistCache: AsyncCacheStore): void; export declare function useCache(isPersist: boolean): CacheManager;