/** * Backend AST Printer – Operator Precedence and Type Printer * * Operator precedence tables, expression precedence classification, * parenthesization logic, and the C# type printer. */ import type { CSharpTypeAst, CSharpExpressionAst } from "./types.js"; /** * C# operator precedence levels (higher = binds tighter). * Used by the printer to insert parentheses only when necessary. */ export declare const getOperatorPrecedence: (op: string) => number; /** * Get the effective precedence of an expression for parenthesization decisions. */ export declare const getExpressionPrecedence: (expr: CSharpExpressionAst) => number; /** * Whether an expression needs parenthesization when used as an operand * of a binary expression with the given parent precedence. */ export declare const needsParensInBinary: (child: CSharpExpressionAst, parentPrecedence: number, isRightOperand: boolean) => boolean; export declare const printType: (type: CSharpTypeAst) => string; //# sourceMappingURL=printer-precedence.d.ts.map