import type { GitCommandResult, WorktreeDescriptor } from './types.js'; export interface GitRunnerOptions { timeoutMs?: number; maxOutputBytes?: number; } export declare function runGit(cwd: string, args: string[], options?: GitRunnerOptions): Promise; export declare function requireGitSuccess(cwd: string, args: string[], options?: GitRunnerOptions): Promise; export declare function resolveRepositoryRoot(cwd: string): Promise; export declare function gitRevision(cwd: string, revision?: string): Promise; export declare function gitStatus(cwd: string): Promise; export declare function gitChangedFiles(cwd: string, baseRevision: string, candidate?: string): Promise; export declare function gitMergeBase(cwd: string, left: string, right: string): Promise; export declare function simulateMerge(cwd: string, parent: string, candidate: string): Promise; export declare function createManagedWorktree(input: { projectRoot: string; runId: string; stepId: string; baseRevision?: string; homeDir?: string; registered: boolean; }): Promise; export declare function cleanupManagedWorktree(input: { repositoryRoot: string; worktreePath: string; branch: string; homeDir?: string; registered: boolean; handoffDurable: boolean; }): Promise<{ cleaned: boolean; reason?: string; }>; //# sourceMappingURL=git-worktree.d.ts.map