/** * Writer - Efficient string building for code generation * * Avoids repeated string concatenation by using an array-based approach. */ export declare class Writer { private parts; private currentIndent; private indentString; /** * Push a string to the output */ push(text: string): void; /** * Push a newline */ newline(): void; /** * Set the indentation level */ indent(level: number): void; /** * Push text with current indentation */ pushIndented(text: string): void; /** * Push a line with current indentation */ pushLine(text: string): void; /** * Push a blank line */ pushBlankLine(): void; /** * Get the final string */ toString(): string; /** * Clear all content */ clear(): void; }