/** * Persistence for ContentLibrary. Whole-library JSON snapshot (vs the * trade log's append-only JSONL) because content records are mutable * throughout their life — new drafts, new assets, status transitions — * so append-only would require replaying every edit on load. A single * re-written JSON file is simpler and content volume is orders of * magnitude smaller than a trade log. * * Disk failures and corruption are always survivable: save is * best-effort, load returns `null` on any error so the agent falls back * to a fresh in-memory library rather than refusing to start. */ import { ContentLibrary } from './library.js'; export declare function saveLibrary(lib: ContentLibrary, filePath: string): void; export declare function loadLibrary(filePath: string): ContentLibrary | null;