/** * Backend AST Printer – Identifier and Escape Utilities * * String/char escape helpers, trivia printing, keyword sets, * identifier escaping, qualified name escaping, prefix unary * separator detection, and numeric literal formatting. */ import type { CSharpExpressionAst, CSharpQualifiedNameAst, CSharpTriviaAst } from "./types.js"; export declare const escapeCSharpStringLiteral: (value: string) => string; export declare const escapeCSharpCharLiteral: (value: string) => string; export declare const printTrivia: (trivia: CSharpTriviaAst) => string; export declare const needsPrefixUnarySeparator: (operatorToken: string, operand: CSharpExpressionAst) => boolean; export declare const printNumericLiteral: (expr: Extract) => string; export declare const CSHARP_KEYWORDS: Set; /** * C# predefined type keywords that should NOT be escaped with @ * when used in type position (they are the type name itself). */ export declare const PREDEFINED_TYPE_KEYWORDS: Set; /** * Escape a C# identifier if it's a keyword. * Preserves predefined type keywords when used as types. */ export declare const escapeIdentifier: (name: string) => string; /** * Escape segments in a qualified name AST. */ export declare const escapeQualifiedName: (name: CSharpQualifiedNameAst, preservePredefinedTypeKeywords?: boolean) => string; //# sourceMappingURL=printer-identifiers.d.ts.map