import type { AutopilotConfig, SpecStatus } from '../../types/index.js';
/** SPEC-569: Default minimum validate score required to auto-create a PR. */
export declare const DEFAULT_AUTO_MERGE_THRESHOLD = 85;
export declare function fireAutoCreateBranch(projectPath: string, projectId: string, specId: string): void;
export declare function fireAutoScaffoldTdd(projectPath: string, projectId: string, specId: string): void;
/** Resolve threshold: explicit config value, else the default. */
export declare function resolveAutoMergeThreshold(config: AutopilotConfig): number;
/**
 * SPEC-569: Fire-and-forget PR creation gated on validateScore >= threshold.
 * If the threshold is not met, emits a `failed` progress event with the reason
 * so observers can surface the miss to the user without blocking the main flow.
 */
export declare function fireAutoCreatePr(projectPath: string, projectId: string, specId: string, validateScore: number | null, threshold: number): void;
/**
 * SPEC-569: Fire the configured complete-loop actions for a status transition.
 *
 * - `approved`  → autoCreateBranch + autoScaffoldTdd (both gated by config flags)
 * - `done`      → autoCreatePr (gated by flag AND score threshold)
 *
 * This function never throws. All work is fire-and-forget.
 */
export declare function fireCompleteLoopActions(params: {
    projectPath: string;
    projectId: string;
    specId: string;
    newStatus: SpecStatus;
    validateScore: number | null;
    config: AutopilotConfig;
}): void;
//# sourceMappingURL=complete-loop.d.ts.map