/**
 * `openAutoPr` — thin shell-out helper for the `runImprovementLoop` preset's
 * `autoOnPromote: 'pr'` mode. Substitutes for the per-product PR-opening
 * code consumers duplicated 4 times. The PR body includes the campaign's
 * manifest hash, gate verdict, and scorecard summary so reviewers can see
 * exactly what was promoted + why.
 *
 * NOT a deploy mechanism — this only OPENS a PR. The human reviews + merges.
 * The Shape B (`autoOnPromote: 'config'`) live-runtime-mutation path is
 * deferred to Pass B with the full shadow / canary / rollback stack.
 */
import type { CampaignResult, GateResult, Scenario } from './types';
export interface OpenAutoPrOptions<TArtifact, TScenario extends Scenario> {
    /** Campaign result to attach to the PR. */
    result: CampaignResult<TArtifact, TScenario>;
    /** Gate verdict explaining the promotion. Substrate refuses to open a PR
     *  when `gate.decision !== 'ship'` — fails loud. */
    gate: GateResult;
    /** Promoted surface diff — typically the new system prompt addendum or
     *  full profile diff. Substrate writes it as the PR body. */
    promotedDiff: string;
    /** GH owner/repo target (e.g., `tangle-network/gtm-agent`). */
    ghOwner: string;
    ghRepo: string;
    /** Branch name for the PR. Default `auto/<manifestHash[:12]>`. */
    branch?: string;
    /** PR title. Default includes manifest hash. */
    title?: string;
    /** Whether to actually open the PR or just dry-run. Default reads
     *  `GH_AUTO_PR_TOKEN` env — present = open, absent = dry-run. */
    dryRun?: boolean;
    /** Test seam — substitute `gh pr create` invocation. */
    ghExec?: (args: string[]) => {
        stdout: string;
        stderr: string;
        status: number;
    };
}
export interface OpenAutoPrResult {
    opened: boolean;
    prUrl?: string;
    dryRun: boolean;
    reason: string;
}
export declare function openAutoPr<TArtifact, TScenario extends Scenario>(options: OpenAutoPrOptions<TArtifact, TScenario>): OpenAutoPrResult;
//# sourceMappingURL=auto-pr.d.ts.map