import type { Command } from 'commander'; import type { ReleaseConfidence } from '../schemas/confidence.schema.js'; export interface ConfidenceOptions { url?: string; repo?: string; json?: boolean; } export interface ConfidenceGateResult { /** Whether any gate (--fail-on / --min-score) was requested. */ requested: boolean; /** True when the release passes the requested gate (or none was requested). */ passed: boolean; /** Human-readable explanation of the gate outcome. */ reason: string; } /** * Evaluate a CI gate against a release-confidence result. Pure + side-effect-free * so it is unit-testable; the CLI action turns a failed gate into a non-zero exit. * * - `failOn`: fail when the verdict is at or worse than this threshold * (e.g. `--fail-on hold` fails on `hold` or `block`). * - `minScore`: fail when the confidence score is below this (a `null` score — * nothing evaluable — always fails a min-score gate). */ export declare function evaluateConfidenceGate(rc: ReleaseConfidence, failOn?: string, minScore?: number): ConfidenceGateResult; /** Render the human-friendly report for a ReleaseConfidence result. */ export declare function formatConfidenceReport(rc: ReleaseConfidence, subjectRef: string): string; /** * Core of the command, factored out of the action handler so node:test can drive it * without spawning a subprocess. */ export declare function runConfidence(options: ConfidenceOptions, out?: (line: string) => void): Promise; export declare function registerConfidenceCommand(program: Command): void; //# sourceMappingURL=confidence-run.d.ts.map