/** * Transcript scan + envelope assembly for `peaks code context-audit`. * * Moved out of `./context-audit.ts` (wave 3, eslint-family sweep). The * streaming loop, the fold bookkeeping, the `pctOfTotal` rounding and the * group ordering are the report's contract: every line below is copied * exactly — same predicates, same throw points, same accumulator updates in * the same positions. Only pure sub-blocks whose control flow copies 1:1 * were extracted; the read-accumulator loop and the per-line delta * accumulation stay in the functions that own them. */ import type { ContextAuditResult } from './context-audit-types.js'; /** Fail-soft envelope: every field zeroed/emptied, only the partial set. */ export declare function emptyResult(partial: Partial): ContextAuditResult; /** * Stat, size-check and stream a resolved transcript. Fail-soft: every stat * / open / read failure maps to its documented reason via `errorAuditReason`. */ export declare function auditTranscriptFile(transcriptPath: string, maxBytes: number, topN: number): ContextAuditResult;