export declare const ASCII_REGEX: RegExp; /** less's is_ansi_middle set ($LESSANSIMIDCHARS). */ export declare const ansiMidChars: () => string; /** less's is_ansi_end set ($LESSANSIENDCHARS). */ export declare const ansiEndChars: () => string; /** less's osc_ansi_chars ($LESSANSIOSCCHARS): extra OSC intro chars. */ export declare const ansiOscChars: () => string; /** * A "designate a character set" escape: ESC, one of ( ) * +, then the * set's name. Not SGR, and less's ANSI rule cannot close it - its end * chars default to just "m" (line.c:164) - so it is not a sequence to * either engine. less never meets one in text because it keeps its * attributes beside the characters rather than in them; we inline * ours, and terminfo's sgr0 leads with "\E(B" on xterm, so anything * MEASURING our display text has to skip it or count three columns * that are not there. */ export declare const CHARSET_DESIGNATION_G: RegExp; export declare let STYLE_REGEX: RegExp; export declare let STYLE_REGEX_G: RegExp; /** * A style sequence OR a charset designation, for the callers that lay * text out in COLUMNS. Both are zero-width, but only the first is a * sequence by less's rule - see CHARSET_DESIGNATION_G. Parsing of FILE * content keeps to STYLE_REGEX, which is less's rule exactly. */ export declare let STYLE_OR_CHARSET_G: RegExp; /** * Rebuilds the sequence regexes from $LESSANSIMIDCHARS and * $LESSANSIENDCHARS, like init_line. */ export declare function initAnsiChars(): void; export declare const CONSOLE_CLEAR = "\u001B[2J\u001B[H"; export declare let CURSOR_HOME: string; export declare let CLEAR_LINE: string; export declare let CLEAR_BELOW: string; /** * less's auto_wrap and defer_wrap (screen.c:1531): termcap "am" and "xn". * * auto_wrap - the terminal moves to the next line by itself once a * character lands past the right margin. defer_wrap - it holds that * move until the NEXT character arrives (xterm's magic margin), so a * full-width row leaves the cursor parked on the last column. * * The pair decides how a full row ends (line.c:1523), and the three * answers really differ: without xenl a full row must be followed by * NOTHING, because the terminal has already wrapped - a newline there * costs a whole blank line, and the deferred-wrap nudge costs one too. * Both default to true when the terminal says nothing, which is xterm, * the same assumption every escape string above makes. */ export declare let AUTO_WRAP: boolean; export declare let DEFER_WRAP: boolean; export declare let CLEAR_SCREEN: string; export declare let REVERSE_INDEX: string; export declare const CURSOR_TO: (row: number, col: number) => string; /** True while the pager owns a switchable alternate screen, like less * testing sc_init and sc_deinit before it homes to the lower left. */ export declare let ON_ALTERNATE_SCREEN: boolean; export declare let ALTERNATE_CONSOLE_ON: string; export declare let ALTERNATE_CONSOLE_OFF: string; export declare let KEYPAD_ON: string; export declare let KEYPAD_OFF: string; export declare let MOUSE_ON: string; export declare let MOUSE_OFF: string; export declare let MOUSE_SGR_ON: string; export declare let MOUSE_SGR_OFF: string; export declare let BRACKETED_PASTE_ON: string; export declare let BRACKETED_PASTE_OFF: string; export declare let TERMINAL_SUSPEND: string; export declare let TERMINAL_RESUME: string; export declare let VISUAL_BELL: string | null; export declare let STYLE_RESET: string; /** * less's color reset, which is NOT the attribute one. * * A colored run ends with a literal "\033[m" (line.c:1445) — less writes * the bytes itself rather than asking terminfo. Attribute runs end * with sgr0 instead, which on xterm carries a "\E(B" charset * designation in front. Using sgr0 for a color left that designation * in the message text, where nothing can recognise it as a sequence * (less's ANSI rule wants an END char, by default only "m") — so its * three bytes counted as printing columns and the cursor parked three * columns right of every message under --use-color. */ export declare const COLOR_RESET = "\u001B[m"; export declare let INVERSE_ON: string; export declare let INVERSE_OFF: string; export declare let BOLD_ON: string; export declare let BOLD_OFF: string; export declare let UNDERLINE_ON: string; export declare let UNDERLINE_OFF: string; export declare let END_MARKER: string; /** Rebuilds every terminal string that this pager consumes. */ export declare function initTerminalCapabilities(): void;