import { Command } from "commander"; import { type MergePreview, type ResolveChoice } from "../core/workflow-branches.js"; export type MergeOptions = { resolve?: { key: string; choice: ResolveChoice; }[]; take?: "source" | "target"; resolutionsFile?: string; matchHeads?: string; admin?: boolean; }; export declare function hasResolutionInput(opts: MergeOptions): boolean; export declare function readResolutionsFile(path: string): Record; /** Flag checks that need no request, so bad flags fail before any API call. */ export declare function validateMergeOptions(opts: MergeOptions): void; /** * The merge request body. Whenever --match-heads is given (required when * resolving), the merge only goes ahead if a preview fetched now still has the * heads the caller reviewed in `prs diff`, and the heads are sent so the API * re-checks them: otherwise changes pushed after the review would merge * unseen, and a resolution - a literal value - would silently drop them. */ export declare function buildMergeBody(preview: MergePreview | undefined, opts: MergeOptions, custom?: Record): Record; export declare function registerPullRequestCommands(program: Command): void;