import type { Diagnostic } from '../core/index.js'; /** * Every diagnostic a compile of this source produces, in the order a reader * walks the file. * * Each one carries its code, its span, its message and its fix, because that is * what a `Diagnostic` is: the stage that raised it supplied the code and the * span, and everything a person reads came from the error catalogue. There is no * editor-shaped diagnostic type here for the same reason there is no editor * compiler. A host that renders one in a panel and a terminal that renders the * same one under a caret are looking at the same record. * * The order is the bag's own: by offset, then by the span's length, then by code * point of the code. It depends on nothing outside the file, so two machines * list them identically. */ export declare function diagnose(source: string): readonly Diagnostic[]; //# sourceMappingURL=diagnose.d.ts.map