/** * Text Processing Utilities * * Shared utilities for text wrapping, formatting, and manipulation. */ import type { TextWrapOptions } from './types.js'; export declare class TextUtils { /** * Wrap text to fit within specified width with optional indentation */ static wrapText(text: string, options: TextWrapOptions): string; /** * Wrap text with background color applied to each line */ static wrapTextWithBackground(text: string, maxWidth: number, indent: string, backgroundFormatter: (text: string) => string): string; /** * Truncate text with ellipsis if too long */ static truncate(text: string, maxLength: number, ellipsis?: string): string; /** * Pad a string to a fixed width */ static pad(text: string, width: number, align?: 'left' | 'right' | 'center'): string; /** * Strip ANSI escape codes from string */ static stripAnsi(text: string): string; /** * Get visible length of string (handles ANSI codes, emoji, CJK, Tamil, etc.) */ static visibleLength(text: string): number; /** * Pad string to a visual width (handles emoji, Unicode, CJK characters) */ static visualPadEnd(text: string, targetWidth: number): string; } export { TextWrapOptions }; //# sourceMappingURL=text-utils.d.ts.map