/** * Terminal utilities for better rendering control * Implements DEC Mode 2026 (Synchronized Output) and other optimizations */ import { WriteStream } from 'tty'; /** * Check if terminal supports synchronized output (DEC 2026) * Modern terminals: Ghostty, iTerm2 3.5+, Kitty, WezTerm, VSCode 1.80+ */ export declare function supportsSynchronizedOutput(): boolean; /** * Wrap stdout.write to use synchronized output when available */ export declare function createSyncWriter(stdout: WriteStream | undefined): { startSync: () => void; endSync: () => void; write: (data: string) => void; }; /** * Hide cursor during heavy rendering operations */ export declare function hideCursor(stdout: WriteStream | undefined): void; /** * Show cursor after rendering */ export declare function showCursor(stdout: WriteStream | undefined): void; /** * Clear N lines above cursor without scrolling * More targeted than full screen clear */ export declare function clearLinesAbove(stdout: WriteStream | undefined, lines: number): void; /** * Move cursor to specific line (relative to current position) */ export declare function moveCursor(stdout: WriteStream | undefined, lines: number): void; /** * Request terminal size (for responsive layouts) */ export declare function getTerminalSize(stdout: WriteStream | undefined): { columns: number; rows: number; };