/**
 * Product Worktree — shared git worktree helpers for Solo and Product Mode.
 */
/** Find the git repository root from a working directory. */
export declare function findGitRoot(cwd: string): Promise<string | null>;
/** Create an isolated git worktree. Returns the worktree path. */
export declare function createWorktree(gitRoot: string, name: string, baseBranch?: string): Promise<string>;
export declare function getWorktreeDiff(worktreePath: string): Promise<string>;
/** Copy the changed files from a task worktree back into the product workspace. */
export declare function materializeWorktreeChanges(worktreePath: string, targetRoot: string): Promise<void>;
/** Remove a git worktree. */
export declare function removeWorktree(gitRoot: string, path: string): Promise<void>;
/** Merge a worktree branch into the current branch. */
export declare function mergeWorktree(gitRoot: string, worktreeBranch: string): Promise<string>;
