/** * Git & Worktree inspection helpers */ import type { UncommittedWork } from "./types.js"; /** * Execute a git command in a specific directory safely */ export declare function runGit(cwd: string, args: string[], timeoutMs?: number): Promise<{ stdout: string; stderr: string; ok: boolean; }>; /** * Get current git branch */ export declare function getGitBranch(cwd: string): Promise; /** * Get git status --short output and categorize modified vs untracked */ export declare function getGitStatus(cwd: string): Promise<{ statusLines: string[]; modifiedFiles: string[]; untrackedFiles: string[]; }>; /** * Get git diff --stat summary */ export declare function getGitDiffStat(cwd: string): Promise; /** * Discover git worktrees via `git worktree list` */ export declare function getGitWorktreeList(cwd: string): Promise>; /** * Collect all uncommitted work across main repo and any isolated agent worktrees */ export declare function collectAllUncommittedWork(targetCwd: string, additionalWorktreePaths?: string[]): Promise; //# sourceMappingURL=git.d.ts.map