import type { Logger } from './logger.js'; export interface WorktreeInfo { path: string; branch: string; created: boolean; } /** * Create (or reuse) a git worktree for a sprint. * Runs pnpm install + build in the new worktree. */ export declare function createWorktree(sprintId: string, mainRepo: string, log: Logger, baseBranch?: string): WorktreeInfo; /** * Refresh the semantic index in a worktree if stale. */ export declare function refreshIndex(worktreePath: string, log: Logger): void; /** * Enrich backlog if not already enriched. */ export declare function enrichBacklog(backlogPath: string, worktreePath: string, log: Logger): void; /** * Remove a worktree and optionally its branch. */ export declare function removeWorktree(worktreePath: string, branch: string, mainRepo: string, log: Logger): void; /** Get the current HEAD SHA */ export declare function getHeadSha(cwd: string): string; /** Count commits between two SHAs */ export declare function countCommits(fromSha: string, toSha: string, cwd: string): number; /** Push branch to origin */ export declare function pushBranch(branch: string, cwd: string, log: Logger): boolean; //# sourceMappingURL=worktree.d.ts.map