import type { Diagnostic } from '../diagnostics/index.js'; import type { Context, Node } from './context.js'; import type { Remark } from './lexer.js'; /** One line of the output that is not a statement. */ export type Loose = { readonly kind: 'remark'; readonly remark: Remark; readonly depth: number; } | { readonly kind: 'blank'; } | { readonly kind: 'text'; readonly text: string; }; export type Piece = Loose | { readonly kind: 'node'; readonly node: Node; }; /** Repeats the three passes until the output compiles or nothing more can be done. */ export declare function settle(ctx: Context, nodes: readonly Node[], pieces: readonly Piece[]): string; /** Every finding, in the order a reader walks the source. */ export declare function findingsOf(nodes: readonly Node[]): readonly Diagnostic[]; //# sourceMappingURL=settle.d.ts.map