import type { CompletionOrchestratorDeps } from "../completion/completion-orchestrator.ts"; /** * Debounced asynchronous state persistence. Safe to call frequently. */ export declare function persistState(deps: CompletionOrchestratorDeps): void; /** * Adds a task ID to the notification outbox and triggers persistence. */ export declare function addToOutbox(deps: CompletionOrchestratorDeps, taskId: string): void; /** * Force synchronous flush of any pending persistState writes. */ export declare function flushPersist(deps: CompletionOrchestratorDeps): Promise; /** * Synchronous version of flushPersist() for process-exit crash safety. */ export declare function flushPersistSync(deps: CompletionOrchestratorDeps): void; /** * Remove a task and its event state from all in-memory maps, persist, * schedule-side cleanup of sidecar files, clear progress events, * delete checkpoints, and clear milestone threshold tracking. */ export declare function cleanupTask(deps: CompletionOrchestratorDeps, taskId: string): void; /** * Schedule a delayed cleanup. Used by recovery. */ export declare function scheduleCleanup(deps: CompletionOrchestratorDeps, taskId: string): void; //# sourceMappingURL=persist-helpers.d.ts.map