/**
 * Snapshot of the current branch's open PR (if any), for the headless-exit
 * fail-loud path. Returns null when there is no open PR or `gh` cannot answer.
 */
export interface BranchOpenPr {
    number: number;
    url: string;
    state: string;
}
/**
 * Pure classifier: should the exit path warn about this open PR?
 * Warn when the PR exists and is still OPEN.
 */
export declare function shouldWarnOrphanedOpenPr(pr: BranchOpenPr | null): boolean;
/** Human-readable warning for an open PR the exiting run left unattended. */
export declare function formatOrphanedOpenPrWarning(pr: BranchOpenPr): string;
/**
 * Probe `cwd` for an open PR on the current branch via `gh pr view`.
 * Fail-open: any error / missing gh → null (never block the run's exit).
 */
export declare function getBranchOpenPr(cwd: string, execFileAsync: (file: string, args: string[], opts: {
    cwd: string;
    timeout: number;
    maxBuffer: number;
}) => Promise<{
    stdout: string;
}>): Promise<BranchOpenPr | null>;
/**
 * Headless-exit fail-loud: if the cwd's branch has an OPEN PR, print a loud
 * stderr warning. Never throws.
 */
export declare function warnOrphanedOpenPr(cwd?: string): Promise<void>;
