/** * Encode a plain escape sequence. * * Prepends `ESC` (`\x1b`) to the given string and returns the result as bytes. * * @see {@link https://www.ecma-international.org/publications-and-standards/standards/ecma-48/ | ECMA-48} */ export declare function ESC(str: string): Uint8Array; /** * Encode a Control Sequence Introducer (CSI) command. * * Prepends `ESC[` to the given string and returns the result as bytes. * * @see {@link https://www.ecma-international.org/publications-and-standards/standards/ecma-48/ | ECMA-48} */ export declare function CSI(str: string): Uint8Array; /** * Request the cursor position via Device Status Report (DSR). * * Sends `CSI 6n`. The terminal responds with a Cursor Position Report * (`CSI row ; column R`) where row and column are 1-based. * * @see {@link https://www.ecma-international.org/publications-and-standards/standards/ecma-48/ | ECMA-48} */ export declare function DSR(): Uint8Array; /** * Show the cursor (DECTCEM set). * * DEC private mode 25. Not part of ECMA-48; originates from the VT220. * * @see {@link https://vt100.net/docs/vt510-rm/DECTCEM.html | VT510 DECTCEM} */ export declare function SHOWCURSOR(): Uint8Array; /** * Hide the cursor (DECTCEM reset). * * DEC private mode 25. Not part of ECMA-48; originates from the VT220. * * @see {@link https://vt100.net/docs/vt510-rm/DECTCEM.html | VT510 DECTCEM} */ export declare function HIDECURSOR(): Uint8Array; /** * Switch to the alternate screen buffer. * * Saves the cursor and switches to the alternate screen. When `clear` is * `true` (the default), the alternate buffer is cleared on entry. When * `false`, the existing contents are preserved. * * Use {@link MAINSCREEN} to switch back. * * @see {@link https://invisible-island.net/xterm/ctlseqs/ctlseqs.html | xterm control sequences} */ export declare function ALTSCREEN(options?: { clear?: boolean; }): Uint8Array; /** * Switch back to the main screen buffer. * * Restores the cursor and returns to the main screen with scrollback intact. * * @see {@link https://invisible-island.net/xterm/ctlseqs/ctlseqs.html | xterm control sequences} */ export declare function MAINSCREEN(): Uint8Array;