interface DistillerStatus { running: boolean; lastRunAt: number | null; lastProcessed: number; lastError: string | null; } /** Status snapshot for the web Memory tab (POST /api/memory/distill/status). */ export declare function getDistillerStatus(): DistillerStatus & { pendingTotal: number; enabled: boolean; }; /** * One distiller pass. The periodic tick processes every buffered user only * when idle (no active agent jobs); while busy it limits itself to users whose * oldest pending turn has crossed the staleness floor. A manual trigger passes * `force` to flush every buffered user regardless of load — otherwise the web * "Run now" button is a no-op on a continuously-busy bot (the distiller shares * the process with the agent jobs, so it is almost never idle). Returns the * number of users processed. */ export declare function runDistillerOnce(opts?: { force?: boolean; }): Promise; /** Start the periodic distiller. No-op if already running. */ export declare function startMemoryDistiller(): void; /** Stop the periodic distiller (tests + graceful shutdown). */ export declare function stopMemoryDistiller(): void; export {}; //# sourceMappingURL=memory-distiller.d.ts.map