import type { GitHubService } from "../services/github-service.js";
import type { WorktreeSource } from "../utils/worktree.js";
export type WorktreeCreationIntent = WorktreeSource;
export type ResolveWorktreeCreationIntentInput = {
    worktreeSlug: string;
    refName?: string;
    action?: "branch-off";
    githubPrNumber?: undefined;
} | {
    worktreeSlug?: string;
    refName?: string;
    action: "checkout";
    githubPrNumber?: number;
} | {
    worktreeSlug?: string;
    refName?: string;
    action?: undefined;
    githubPrNumber: number;
};
export interface ResolveWorktreeCreationIntentDeps {
    github: GitHubService;
    resolveDefaultBranch: (repoRoot: string) => Promise<string>;
}
export declare class MissingCheckoutTargetError extends Error {
    readonly action = "checkout";
    constructor();
}
export declare function resolveWorktreeCreationIntent(input: ResolveWorktreeCreationIntentInput, repoRoot: string, deps: ResolveWorktreeCreationIntentDeps): Promise<WorktreeCreationIntent>;
//# sourceMappingURL=resolve-worktree-creation-intent.d.ts.map