import type { ResolvedConfig } from "./config.ts"; import { type RunState } from "./runState.ts"; import type { WorktreeEntry } from "./worktrees.ts"; interface EffectiveBranchNameInput { config: ResolvedConfig; entry: Pick; } export declare function effectiveBranchName(input: EffectiveBranchNameInput): Promise; interface EffectiveBranchNameFromRunStateInput { entry: Pick; runState: RunState | undefined; } /** * Resolves the worktree's checked-out branch name. Git is the source of truth: * run state records the branch we *requested* at creation, but a template hook * or manual rename can drift the actual branch (e.g. flawless-inventory prefixes * with the GitHub username). Downstream callers — `gh pr list --head `, * the displayed `branch:` row, `git push` — need what git has now, not what we * once asked for. Falls back to run state / entry when git can't answer * (detached HEAD, worktree not yet provisioned, git failure). */ export declare function effectiveBranchNameFromRunState(input: EffectiveBranchNameFromRunStateInput): Promise; interface HasAdoptedBranchInput { config: ResolvedConfig; entry: Pick; } export declare function hasAdoptedBranch(input: HasAdoptedBranchInput): boolean; export {}; //# sourceMappingURL=worktreeRunState.d.ts.map