/** * Serializes an {@link AstNode} tree back to canonical formula source. * * This is the inverse of the parser and the foundation for copy/fill: the * {@link FormulaTransposer} offsets relative references in the AST, then this * module re-emits the source. Serialization is **precedence-aware** — it inserts * the minimum parentheses needed to preserve the tree's meaning, so a * round-trip never changes semantics. * * @packageDocumentation */ import { AstNode } from './parser/ast.types'; /** * Serializes an AST to formula source (without the leading `=`). * * @param node - The AST root. * @returns The canonical source string. */ export declare function serializeFormula(node: AstNode): string; /** * Serializes an AST to a complete formula source including the leading `=`. * * @param node - The AST root. * @returns The source string prefixed with `=`. */ export declare function serializeFormulaWithEquals(node: AstNode): string; //# sourceMappingURL=formula-serializer.d.ts.map