import { type Database } from "./database.js"; /** Identity-only system inventory; all mutation is tenant-scoped and rechecked. */ export declare function listExhaustedScheduledTasks(db: Database, limit?: number): Promise<{ id: string; workspace_id: string; }[]>; /** * Pause only settled, truly exhausted work and enqueue external reconciliation. * * A final run that did not succeed is reviewed for its owner notice first * (`scheduled_task_blocker_reviews`, the inventory's own unreviewed test), so * retiring never hides a failed last run. A notice already sent stays: the * review is kept as `paused` with the retired schedule, never read as a * person's pause that withdraws it. */ export declare function retireExhaustedScheduledTask(db: Database, workspaceId: string, taskId: string): Promise; export declare function listScheduledTaskScheduleReconciliations(db: Database, limit?: number): Promise<{ id: string; task_id: string; workspace_id: string; temporal_schedule_id: string; }[]>; export declare function acknowledgeScheduledTaskScheduleReconciliation(db: Database, workspaceId: string, id: string): Promise; export declare function deferScheduledTaskScheduleReconciliation(db: Database, workspaceId: string, id: string): Promise;