import type { IngestCacheEntry, IngestCacheKey, MemoryRoot } from "./types.js";
export declare function computeIngestKey(input: {
    sourceBytes: Buffer;
    indexMdBytes: Buffer;
    promptTemplateVersion: string;
    agentId: string;
}): IngestCacheKey;
export declare function readCacheEntry(root: MemoryRoot, key: IngestCacheKey): Promise<IngestCacheEntry | null>;
export declare function writeCacheEntry(root: MemoryRoot, entry: IngestCacheEntry): Promise<void>;
export declare function cacheStatus(root: MemoryRoot): Promise<{
    entries: number;
    bytes: number;
}>;
export declare function clearCache(root: MemoryRoot, opts?: {
    olderThanMs?: number;
}): Promise<{
    removed: number;
}>;
