/** * Pretty-printer for TDC `.tdc` documents. * * Re-emits the parsed tree with consistent indentation, tidy attribute * spacing, inline output rows, and an aligned `` table. It is built to be * SAFE: the formatted text must generate byte-identical output to the original * (guaranteed by `format.test.ts`, which renders before/after and compares). * * What is preserved verbatim: * - `` bodies — literal generator output (incl. ``). * - Comments — reinjected from the token stream by position. * - Attribute order and values. * * What is normalized: * - Indentation (4 spaces per level) and one element per line for structure. * - A single space between attributes; no space before `>` / `/>`. * - `` rows: compact on one line if short, else an aligned table. * * If the document has a syntax error, formatting is refused (returns the * source unchanged) — never format a file we can't fully parse. */ /** Format a `.tdc` source string. Returns it unchanged if it has syntax errors. */ export declare function formatTdc(source: string): string; //# sourceMappingURL=format.d.ts.map