export declare function getLastCurationTime(): Promise; export declare function setLastCurationTime(ms: number): Promise; /** * Loads daily log or conversation summary files from the last `days` days. * Looks in: * - ~/.klaw/memory/daily/ — any .md or .txt file whose name starts with a date * - ~/.klaw/workspace/ — HEARTBEAT.md if present * * Returns an array of {date, content} pairs, newest first. */ export declare function loadDailyLogs(opts: { days: number; }): Promise; type DistilledFact = { fact: string; category: string; confidence: number; }; /** * Appends a "## Curated Facts (date)" section to MEMORY.md with the distilled * facts. Creates the file if it doesn't exist. */ export declare function mergeFactsIntoMemory(facts: DistilledFact[]): Promise; /** * Uses the weekly log corpus to extract user preferences and feed them into * the user model (loadUserModel / saveUserModelAsync from user-model.js). * Best-effort — never throws. */ export declare function refineUserModelFromLogs(logs: string[]): Promise; /** * Run the daily memory curation pass. * * Guards with a 24-hour cooldown so it can be called on every heartbeat tick * without doing expensive work more than once per day. * * Steps: * 1. Check cooldown — bail if last run < 24h ago * 2. Load daily logs from the past 7 days * 3. Distill durable facts via model call * 4. Merge facts into MEMORY.md * 5. Refine user model from logs * 6. Record completion time * * Fire-and-forget safe — catches all errors at the top level. */ export declare function runMemoryCuration(): Promise; export {};