/** * Per-iteration scanner that closes workspaces and removes worktrees for * tasks that have reached a terminal status. One per `orchestrate()` * invocation; stateless across iterations. Mirrors `Dispatcher`. */ import type { ResolvedConfig } from "../lib/config.ts"; import { type BoardState } from "../lib/taskSource.ts"; import type { WorktreeEntry } from "../lib/worktrees.ts"; interface CleanerDeps { config: ResolvedConfig; } export interface Cleaner { runOnce: (arguments_: { state: BoardState; worktreeEntries: readonly WorktreeEntry[]; dryRun: boolean; signal?: AbortSignal; }) => Promise; } export declare function createCleaner(deps: CleanerDeps): Cleaner; export {}; //# sourceMappingURL=cleaner.d.ts.map