/** * Git Worktree Management * * Provides lifecycle management for git worktrees, enabling * parallel task execution in isolated working directories. */ export type WorktreeInfo = { path: string; branch: string; head: string; bare: boolean; }; /** * Create a new git worktree with its own branch. * Returns the absolute path to the worktree directory. */ export declare function createWorktree(repoDir: string, branchName: string, baseBranch?: string): Promise; /** * Remove a worktree and optionally delete its branch. */ export declare function removeWorktree(repoDir: string, worktreePath: string, deleteBranch?: boolean): Promise; /** * List all worktrees for a repository. */ export declare function listWorktrees(repoDir: string): Promise; /** * List only ralph-managed worktrees (those under .ralph/worktrees/). */ export declare function listRalphWorktrees(repoDir: string): Promise; /** * Remove all ralph-created worktrees (crash recovery / cleanup). */ export declare function cleanupAllWorktrees(repoDir: string): Promise; /** * Merge changes from a worktree branch back into the target branch. */ export declare function mergeWorktreeBranch(repoDir: string, worktreeBranch: string, targetBranch: string): Promise; //# sourceMappingURL=worktree.d.ts.map