export interface GitCommandOptions { readonly environment?: NodeJS.ProcessEnv; readonly timeoutMs?: number; readonly onStdout?: (chunk: string) => void; } export interface GitCommandResult { readonly stdout: string; readonly stderr: string; } export declare const SAFE_GIT_CONFIG: string[]; /** Run Git from the selected worktree, optionally consuming stdout as it arrives. */ export declare function runGit(gitPath: string, worktreePath: string, args: readonly string[], options?: GitCommandOptions): Promise; /** Synchronous Git query for schema validation, with no caller-supplied Git configuration. */ export declare function runGitSync(worktreePath: string, args: readonly string[]): string;