export declare const ansiPattern: RegExp;
export declare const ansiPrefixPattern: RegExp;
export declare function stripAnsi(input: string): string;
export declare function visibleLength(input: string): number;
export declare function sliceVisible(input: string, width: number): string;
/**
 * Word-wraps a single logical line to `width` visible columns, preserving
 * ANSI styling and never splitting inside an escape sequence. Breaks on the
 * last space that fits; falls back to a hard cut for unbreakable runs.
 */
export declare function wrapVisibleLine(line: string, width: number): string[];
export declare function codePointWidth(codePoint: number): number;
