import type { MemoryContentStoreOptions, OfficeContentMetaRecord, OfficeContentRecord, OfficeContentStore } from './types'; /** 以内存字节预算管理热内容,并保留轻量 revision 元数据。 */ export declare class MemoryContentStore implements OfficeContentStore { private readonly options; private readonly entries; /** 仅记录仍驻留内存的内容,并利用 Map 插入顺序维护 LRU。 */ private readonly residentKeys; private readonly pinCounts; private usedBytes; private disposed; private disposePromise; constructor(options: MemoryContentStoreOptions); private ensureAvailable; private evictIfNeeded; /** 把最近访问的驻留内容移动到 LRU 队尾。 */ private markResidentUsed; getMeta(key: string): OfficeContentMetaRecord | undefined; get(key: string, signal?: AbortSignal): Promise<{ key: string; revision: number; meta: TMeta; value?: TValue | undefined; updatedAt: number; } | undefined>; put(record: OfficeContentRecord): Promise; /** 把冷层读取的相同 revision 内容恢复到热层,不放宽正常写入规则。 */ hydrate(record: OfficeContentRecord): Promise; pin(keys: readonly string[]): () => void; delete(key: string): Promise; dispose(): Promise; }