export declare function stripAnsi(text: string): string; /** * Columns to reserve when laying a string out. Conservative by design — see * `ui-core/rendering/text-width.ts` for why it can exceed wcwidth. */ export declare function layoutWidth(text: string): number; /** Columns a terminal is expected to paint. Never exceeds `layoutWidth`. */ export declare function displayWidth(text: string): number; /** * Content width supplied by the classic shell. * * The caller has already removed the OpenTUI-style left/right shell padding; * block builders must therefore wrap to the width they receive rather than * subtracting another terminal gutter. */ export declare function contentWidth(columns: number): number; export declare function blockRowCount(lines: readonly string[]): number;