export declare class CacheManager implements Map { private filePath; private enableCompression; private ctx; private cache; private isDirty; private saveImmediately; private throttledCommit; constructor(filePath: string, enableCompression?: boolean); serialize(value: T): string; deserialize(serialized: string): T; /** * 序列化并存储数据到文件 * @returns */ saveCache(): void; /** * 反序列化并加载缓存数据 * @returns */ private loadCache; get size(): number; [Symbol.iterator](): IterableIterator<[string, T]>; [Symbol.toStringTag]: string; has(key: string): boolean; keys(): IterableIterator; values(): IterableIterator; entries(): IterableIterator<[string, T]>; set(key: string, value: T): this; get(key: string): T | undefined; delete(key: string): boolean; clear(): void; forEach(callbackfn: (value: T, key: string, map: Map) => void, thisArg?: any): void; commit(): void; setAutoSave(interval?: number): void; private handleExit; }