export interface ChangedFile { path: string; status: 'A' | 'M' | 'D' | 'R'; } /** * Get list of changed files in a worktree */ export declare function getChangedFiles(worktreePath: string, runId?: string): ChangedFile[]; /** * Get diff for a specific file */ export declare function getFileDiff(worktreePath: string, filePath: string, runId?: string): string; /** * Get the current branch name for a worktree */ export declare function getCurrentBranch(worktreePath: string): string | null; /** * Stage all changes and create a commit */ export declare function createCommit(worktreePath: string, commitMessage: string): { success: boolean; error?: string; }; /** * Merge current branch into target branch */ export declare function mergeToBranch(worktreePath: string, targetBranch: string): { success: boolean; error?: string; }; /** * Get PR URL for the current branch (GitHub/GitLab/etc) */ export declare function getPRUrl(worktreePath: string, baseBranch?: string): string | null; /** * Check if the current working directory is a git worktree * @param cwd Optional working directory to check (defaults to process.cwd()) * @returns true if running from a worktree branch, false otherwise */ export declare function isWorktreeBranch(cwd?: string): boolean; //# sourceMappingURL=gitUtils.d.ts.map