/** * CST printer — reconstructs source text from a CST tree. * * Walks the tree in document order, collecting all CstToken leaf nodes * and concatenating their trivia + text. The result is the original source * (losslessness property). * * This module supports both: * - Full CST tree printing via `printCst(program)` * - Flat token-level printing via `printTokens()` in attachTrivia.ts */ import type { CstProgram } from './types'; /** * Reconstruct the original source text from a CST program. * * Walks the CST tree in document order, collecting all leaf CstTokens * and concatenating their trivia + text. The trailing trivia from the * program is appended at the end. * * Losslessness property: `printCst(parseToCst(source)) === source` */ export declare function printCst(program: CstProgram): string;