/** * coverage-gate, aggregate (single-process) coverage ratchet. * * Parses Bun's text coverage table ("All files | %Funcs | %Lines") and enforces * per-repo floors. Test failures in the single-process run are reported as a * note but do not fail the coverage gate (correctness is gated elsewhere). */ import type { CoverageConfig } from '../config.js'; export interface CoverageSummary { readonly funcsPct: number; readonly linesPct: number; } /** Extract the aggregate `All files` row percentages from Bun coverage output. */ export declare function parseCoverageSummary(output: string): CoverageSummary | null; /** Extract a Bun "N fail" count from the run output, if present. */ export declare function parseFailCount(output: string): number; export interface CoverageGateResult { readonly ok: boolean; readonly summary: CoverageSummary | null; readonly failCount: number; readonly detail: string; } /** Evaluate coverage output against the configured floors. */ export declare function evaluateCoverageGate(output: string, config: Pick): CoverageGateResult; //# sourceMappingURL=coverage-gate.d.ts.map