export interface WorktreeLease { gitRoot: string; path: string; /** Effective child cwd inside the generated worktree. */ cwd: string; branch: string; /** Commit the worktree branch started from. */ baseRef?: string; } /** Settlement snapshot of a generated worktree. */ export interface AgentWorktreeResult { path: string; branch?: string; baseRef?: string; /** Sorted repository-relative paths, at most MAX_CHANGED_FILES. */ changedFiles: string[]; diffstat: { files: number; insertions: number; deletions: number; }; kept: boolean; diffError?: string; } export declare class WorktreeManager { #private; create(id: string, cwd: string, name: string, preserveSourceSubdirectory?: boolean): Promise; get(id: string): WorktreeLease | undefined; /** Run a setup command in the worktree root; failure throws with the output tail. */ setup(id: string, command: string): Promise; /** Bounded diff against the base commit, including untracked files; git failures become diffError. */ summarize(id: string): Promise; cleanup(id: string, deleteBranch?: boolean): Promise; } //# sourceMappingURL=worktree-manager.d.ts.map