/** * Git Utilities for Hari Seldon * * Low-level git command execution using simple-git. */ import { SimpleGit } from 'simple-git'; export declare function createGit(cwd: string): SimpleGit; export declare function getRepoRoot(cwd: string): Promise; export declare function getCurrentBranch(cwd: string): Promise; export declare function branchExists(cwd: string, branchName: string): Promise; export declare function isCleanWorkingDirectory(cwd: string): Promise; export declare function isGitRepository(cwd: string): Promise; export declare function listWorktrees(cwd: string): Promise>; export declare function createWorktree(cwd: string, path: string, branch: string, baseBranch?: string): Promise; export declare function removeWorktree(cwd: string, path: string, force?: boolean): Promise; export declare function pruneWorktrees(cwd: string): Promise; /** * Check if the repository is in a merge conflict state. */ export declare function isInMergeConflict(cwd: string): Promise; /** * Get list of files with merge conflicts. */ export declare function getConflictedFiles(cwd: string): Promise; /** * Get merge head information (ours and theirs commits). */ export declare function getMergeHeads(cwd: string): Promise<{ ours: string; theirs: string; oursRef: string; theirsRef: string; } | null>; /** * Stage a resolved file. */ export declare function stageFile(cwd: string, filePath: string): Promise; /** * Stage multiple resolved files. */ export declare function stageFiles(cwd: string, filePaths: string[]): Promise; /** * Complete a merge after resolving conflicts. */ export declare function completeMerge(cwd: string, message?: string): Promise; /** * Abort a merge in progress. */ export declare function abortMerge(cwd: string): Promise; /** * Check out a specific version of a file (ours or theirs). */ export declare function checkoutFileVersion(cwd: string, filePath: string, version: 'ours' | 'theirs'): Promise; //# sourceMappingURL=git.d.ts.map