export interface GitRepositoryInfo { repositoryRoot: string; gitCommonDir: string; headSha: string; branchRef?: string; dirty: boolean; } export interface GitWorktreeEntry { path: string; headSha?: string; branchRef?: string; bare: boolean; detached: boolean; locked: boolean; prunable: boolean; } export declare class GitExecutionError extends Error { constructor(message: string, options?: { cause?: unknown; }); } export declare function runGit(cwd: string, args: string[]): Promise; export declare function inspectGitRepository(workspacePath: string): Promise; export declare function resolveGitCommit(repositoryRoot: string, ref: string): Promise; export declare function parseGitWorktreeList(output: string): GitWorktreeEntry[]; export declare function listGitWorktrees(repositoryRoot: string): Promise; export declare function findGitWorktree(repositoryRoot: string, worktreePath: string): Promise;