export declare const ansiPattern: RegExp; export declare const ansiPrefixPattern: RegExp; export declare function stripAnsi(input: string): string; export declare function stripTerminalControls(input: string): string; export declare function visibleLength(input: string): number; export declare function sliceVisible(input: string, width: number): string; /** Clips text styled only at grapheme boundaries, resetting any truncated style. */ export declare function clipVisible(input: string, width: number): string; /** Terminal-cell width of editor text, measured one grapheme cluster at a time. */ export declare function inputTextWidth(input: string): number; /** Expands editor tabs to the same fixed four cells used by {@link inputTextWidth}. */ export declare function renderInputText(input: string): string; /** * Returns the UTF-16 offset at or immediately before a terminal column. * Graphemes stay intact even when the requested column falls inside a wide one. */ export declare function offsetAtVisibleColumn(input: string, column: number): number; /** * 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;