/** * Backend AST Printer – Statements * * Statement printing (printStatement), block helpers, switch labels, * try/catch, and the flat-block printer (printStatementFlatBlock). */ import type { CSharpStatementAst, CSharpBlockStatementAst, CSharpSwitchLabelAst } from "./types.js"; export declare const printStatement: (stmt: CSharpStatementAst, indent: string) => string; export declare const printBlockStatement: (block: CSharpBlockStatementAst, indent: string) => string; export declare const printSwitchLabel: (label: CSharpSwitchLabelAst, indent: string) => string; /** * Print a statement with "flat block" convention: * block braces and inner statements share the same indent level. * * Used by the static container's __TopLevel method and other contexts * where block bodies need Tsonic's flat-block formatting (braces at same * indent as inner statements, not C#-standard nested convention). * * For compound statements (if/while/for/foreach/switch/try), body blocks * are printed at indent+4 with flat block convention (braces and inner * statements at the same level). */ export declare const printStatementFlatBlock: (stmt: CSharpStatementAst, indent: string) => string; //# sourceMappingURL=printer-statements.d.ts.map