import { Command } from 'commander'; import type { Logger } from 'pino'; import type { GhWrapper } from '@generacy-ai/cockpit'; export interface RunMergeInput { gh: GhWrapper; issue: number; repo: string; logger: Logger; } export interface RunMergeResult { exitCode: 0 | 1 | 2 | 3; stdout: string; /** * #928 — the PR number the CLI operated on. Set on exit-0 (the PR that was * merged), on the pr-flag paths (mirrors the caller's `--pr `), and on * the resolver's non-terminal red paths where a PR was identified. Absent * on `unresolved` / `pr-number` (no PR to name). */ prNumber?: number; } export interface RunMergeWithExplicitPrInput { gh: GhWrapper; /** The `` issue number — authorization source for `completed:validate`. */ issue: number; repo: string; /** The operator-supplied `--pr ` value. Positive integer, validated. */ prNumber: number; logger: Logger; } /** * FR-005 — Commander parser for `--pr `. See contracts/pr-flag-cli.md §2. * Throws `CockpitExit(2)` on any malformed input. */ export declare function parsePrFlag(input: string): number; export declare function runMerge(input: RunMergeInput): Promise; /** * FR-005..FR-008 — `--pr ` escape hatch. Skips the tier-1/2/3 resolver * chain but keeps every safety precondition. Gate order per contracts/pr-flag-cli.md §3. */ export declare function runMergeWithExplicitPr(input: RunMergeWithExplicitPrInput): Promise; export declare function cockpitMergeCommand(): Command; //# sourceMappingURL=merge.d.ts.map