/** * Git operations for wave sub-agent groups. * * All commands use executeCommand() from src/utils/command.ts. * No direct child_process usage. */ /** * Ensure the .worktree root directory exists. */ export declare function ensureWorktreeRoot(baseCwd: string): void; /** * Create a Git worktree with a new branch. * * @param baseCwd - The repository root * @param groupId - Group identifier (used for branch name) * @param groupName - Group alias (used for directory name) * @param baseCommit - The commit SHA to base the new branch on * @returns The absolute path to the created worktree */ export declare function createWorktree(baseCwd: string, groupId: string, groupName: string, baseCommit: string): Promise; /** * Check if a worktree directory exists on disk. */ export declare function worktreeExists(baseCwd: string, groupId: string, groupName: string): boolean; /** * Resolve the base commit for a new group. * * Rules: * 1. No dependencies: use HEAD of the current branch * 2. Single dependency: use HEAD of the dep's branch * 3. Multiple dependencies: validate linear ancestry, use most recent * * @param baseCwd - The repository root * @param dependsOn - Array of dependency group IDs * @param depBranches - Map from group ID to branch name */ export declare function resolveBaseCommit(baseCwd: string, dependsOn: string[], depBranches?: Map): Promise; /** * Validate that all given commit SHAs form a linear ancestry chain. * Throws if any pair is not an ancestor relationship. */ export declare function validateLinearAncestry(baseCwd: string, shas: string[]): Promise; /** * Get HEAD of the current branch. */ export declare function getHead(baseCwd: string): Promise; /** * Get the HEAD SHA of a branch. */ export declare function getBranchHead(baseCwd: string, branch: string): Promise; /** * Stage all changes and commit. * * @returns The commit SHA, or null if nothing to commit. */ export declare function commitChanges(worktreePath: string, groupId: string, agentCount: number, successCount: number): Promise; //# sourceMappingURL=git.d.ts.map