/** * Get the visible length of a string, ignoring ANSI escape codes. */ export declare function visibleLength(str: string): number; /** * Clip text to a maximum visible width, accounting for ANSI escape codes. * Adds ellipsis (…) if truncated. */ export declare function clipText(str: string, maxWidth: number): string;