export declare const style: { bold: (s: string) => string; dim: (s: string) => string; inverse: (s: string) => string; yellow: (s: string) => string; red: (s: string) => string; green: (s: string) => string; cyan: (s: string) => string; boldYellow: (s: string) => string; blue: (s: string) => string; }; export declare function enterFullScreen(): void; export declare function exitFullScreen(): void; /** Paint lines to terminal without flicker: cursor home → overwrite each line → clear remainder */ export declare function paint(lines: string[]): void; export declare function screenSize(): { cols: number; rows: number; }; export interface KeyEvent { raw: string; name: string; shift: boolean; ctrl: boolean; } export declare function parseKey(data: Buffer): KeyEvent; /** Strip ANSI escape codes to get visible character count */ export declare function stripAnsi(s: string): string; /** Skip `offset` visible characters, preserving ANSI state, then return the rest */ export declare function ansiSlice(s: string, offset: number): string; /** Pad/truncate a string to a visible width (ANSI-aware) */ export declare function fitWidth(s: string, width: number): string;