/** * The human layer over `FixReport`. * * The claim this rendering has to carry is unusual, so it is made explicitly and never * by implication: a fix shown here was APPLIED to the grammar, the grammar was * RECOMPILED, the corpus was RE-PARSED, and the output did not move. Every offered * rewrite prints that evidence next to it, with the sample and byte counts, because * "proven" without a corpus size is a word, not a fact. * * The diff is the primary interface. `--apply` writing to a file is a second, explicit * step; what a reader gets by default is what would change, in the form they would read * it in a review. * * TWO STATES, MADE VISUALLY DISTINCT * ---------------------------------- * ACTIONABLE and LOCATED are the whole model, and in the first cut they were two words * in the same colour — which is to say, not a distinction at all until you read them. * They now differ in glyph, colour and weight, so a reader triages the report by * scanning the left margin rather than by parsing it. LOCATED prints the REASON and * never advice: a site that cannot be rewritten is still worth knowing about, and that * is the difference between "here is exactly where the problem is" and silence. * * Like `diagnose-render.ts`, this emits LINES OF SPANS and never an escape byte; * `terminal.ts` owns every interaction with a terminal. */ import type { FixReport } from './fix.ts'; import { type Line, type RenderTarget } from './terminal.ts'; export type FixRenderOptions = RenderTarget & { name?: string; /** * How many edits were WRITTEN to disk. A count, not a flag: `applyFixEdits` skips an * edit whose span moved under it, so a run can write some of `r.verified` and skip the * rest. A boolean here made the report say every verified change had been written * whenever any one of them had been — the one number a reader checks after `--apply`, * wrong in exactly the case that matters. Absent (or 0) means nothing was written. */ applied?: number; /** Absolute path of the edited source, used ONLY for the frame's terminal hyperlink. */ sourceRoot?: string; }; export declare function fixReportLines(r: FixReport, opts?: FixRenderOptions): Line[]; export declare function renderFixReport(r: FixReport, opts?: FixRenderOptions): string; //# sourceMappingURL=fix-render.d.ts.map