/** * Incremental / recompute savings summary — one-line numbers users can see. * * Pure formatters over RecomputeReport and run phase states. No I/O. */ import type { PhaseState, RunState } from "./store.ts"; /** Minimal recompute-shaped input (avoids circular import with runtime). */ export interface SavingsRecomputeInput { readonly dryRun?: boolean; readonly seeds?: readonly string[]; readonly rerun: readonly string[]; readonly reused: readonly string[]; readonly cutoff: readonly string[]; } export interface PhaseCountSummary { total: number; completed: number; failed: number; skipped: number; /** Phases with cacheHit set (cross-run or run-only). */ cached: number; running: number; other: number; } /** Count phase outcomes from a run state map (status / cache hits). */ export declare function countPhaseOutcomes(phases: Record | undefined): PhaseCountSummary; /** * One-line savings for recompute reports. * Example: `reused 5 · rerun 2 · cutoff 1 · saved ~71% phases` */ export declare function formatSavingsLine(r: SavingsRecomputeInput): string; /** One-line run cache summary when any phase was a cache hit. */ export declare function formatRunCacheLine(state: Pick): string | undefined; /** Prefix block for recompute human output. */ export declare function formatRecomputeSavingsHeader(r: SavingsRecomputeInput): string; //# sourceMappingURL=savings.d.ts.map