import type { Worktree, WorktreeDeps, WorktreeReconciliationSummary } from "./types.js"; export type WorktreeReconcilePhase = "reconcile" | "cleanup-nudge"; export type WorktreeReconciliationAgent = (input: { phase: WorktreeReconcilePhase; sourceCwd: string; worktree: Worktree; prompt: string; resumeThreadId?: string; summary: WorktreeReconciliationSummary; signal?: AbortSignal; }) => Promise<{ exitCode: number; stdout: string; stderr: string; threadId?: string; }>; export type ReconcileWorktreeOptions = { cwd: string; name: string; registryFile: string; reconciliationAgent: WorktreeReconciliationAgent; deps: WorktreeDeps; signal?: AbortSignal; }; export declare function reconcileWorktree(options: ReconcileWorktreeOptions): Promise;