import type { BackgroundTaskConfig } from "../../config/schema"; import type { BackgroundTask } from "./types"; import type { ConcurrencyManager } from "./concurrency"; import type { OpencodeClient } from "./opencode-client"; export declare function pruneStaleTasksAndNotifications(args: { tasks: Map; notifications: Map; onTaskPruned: (taskId: string, task: BackgroundTask, errorMessage: string) => void; }): void; export type SessionStatusMap = Record; export declare function checkAndInterruptStaleTasks(args: { tasks: Iterable; client: OpencodeClient; config: BackgroundTaskConfig | undefined; concurrencyManager: ConcurrencyManager; notifyParentSession: (task: BackgroundTask) => Promise; sessionStatuses?: SessionStatusMap; onTaskInterrupted?: (task: BackgroundTask) => void; }): Promise;