/** * String Builder Utility * Efficient string concatenation for large text operations * Backward compatible performance optimization */ /** * High-performance string builder for concatenation operations */ export declare class StringBuilder { private chunks; /** * Append text to the builder * @param text - Text to append * @returns This builder instance for chaining */ append(text: string): this; /** * Append text with a newline * @param text - Text to append (optional) * @returns This builder instance for chaining */ appendLine(text?: string): this; /** * Append multiple strings efficiently * @param texts - Array of strings to append * @returns This builder instance for chaining */ appendMany(texts: string[]): this; /** * Insert text at a specific position * @param index - Position to insert at * @param text - Text to insert * @returns This builder instance for chaining */ insert(index: number, text: string): this; /** * Remove characters from a range * @param start - Start position * @param length - Length to remove * @returns This builder instance for chaining */ remove(start: number, length: number): this; /** * Get the current length of the built string * @returns Current length */ getLength(): number; /** * Check if the builder is empty * @returns True if no content has been added */ isEmpty(): boolean; /** * Clear all content from the builder * @returns This builder instance for chaining */ clear(): this; /** * Build and return the final string * @returns The concatenated string */ toString(): string; /** * Build and return the final string, then clear the builder * @returns The concatenated string */ buildAndClear(): string; /** * Get the number of chunks * @returns Number of chunks */ getChunkCount(): number; /** * Repeat a string multiple times efficiently * @param text - Text to repeat * @param count - Number of times to repeat * @returns This builder instance for chaining */ repeat(text: string, count: number): this; /** * Pad the string with characters * @param char - Character to pad with * @param length - Target length * @param align - Alignment ('left', 'right', 'center') * @returns This builder instance for chaining */ pad(char: string, length: number, align?: 'left' | 'right' | 'center'): this; } //# sourceMappingURL=string-builder.d.ts.map