import type { TaskList } from "../../../task-list/dist/index.js"; import { type MaestroState, type RunningEntry } from "./state.js"; export type ReconcileAction = "stop_clean" | "stop_keep" | "update" | "refresh_failed"; export interface ReconcileResult { taskId: string; action: ReconcileAction; } export interface ReconcileDeps { tasks: Pick; stopWorker?: (entry: RunningEntry, action: Extract) => void | Promise; removeWorkspace?: (root: string, qualifiedId: string) => Promise; logger?: { warn?(message: string, meta?: Record): void; }; onEvent?: (event: { type: "reconcile"; task_id: string; action: ReconcileAction; }) => void; } export declare function reconcileRunning(state: MaestroState, deps: ReconcileDeps): Promise;