import type { DecisionLifecycleHold } from '../lifecycle.js'; import type { CompileCacheEntry, CompileCacheIdentity, CompileCacheLifecycleOptions, CompileCacheReadContext, CompileCacheResult } from './types.js'; export { CompileCacheRejectedError } from './records.js'; /** * In-memory reference store. Entries are immutable and concurrent fills share one promise. * Out-of-scope or unauthorized lifecycle calls return the same result as an absent key. */ export declare class MemoryCompileCache { private readonly records; private readonly fills; private readonly policy; private readonly rule; constructor(options: CompileCacheLifecycleOptions); getOrCompile(identity: CompileCacheIdentity, context: CompileCacheReadContext, ttlMs: number, compile: () => Promise, options?: { bypass?: boolean; }): Promise>; read(identity: CompileCacheIdentity, context: CompileCacheReadContext): CompileCacheEntry | null; /** Erase the body and leave a persistent tombstone; the key never fills or restores again. */ tombstone(identity: CompileCacheIdentity, context: CompileCacheReadContext): boolean; /** D10 deletion: same body-free tombstone as `tombstone`; false when absent, held or already erased. */ delete(identity: CompileCacheIdentity, context: CompileCacheReadContext): boolean; /** Place (or with `null`, release) a D10 hold scoped to the `cache` surface. */ setLegalHold(identity: CompileCacheIdentity, context: CompileCacheReadContext, hold: DecisionLifecycleHold | null): void; /** Export an authorized live entry when the lifecycle rule persists backups. */ backup(identity: CompileCacheIdentity, context: CompileCacheReadContext): CompileCacheEntry | null; /** Import a backup only while live, in retention, and never over a tombstone or live entry. */ restore(entry: CompileCacheEntry, context: CompileCacheReadContext): void; private lookup; private retire; } //# sourceMappingURL=store.d.ts.map