/** less scrsize precedence, before gutters are reserved. */ export declare function detectedDimensions(): [number, number]; /** * The escape sequences that undo enterScreen, like less's term_deinit. * * Both ways out of the screen need these in this order, and they were * written twice: here and inline in the quit path. Two copies of an * exit path is how one of them silently stops matching less. */ export declare function leaveScreenCodes(): void; /** * Leaves the alternate screen and raw mode so a child process can use * the terminal, like less de-initializing before running a command. */ export declare function suspendTerminal(): void; export declare function enterScreen(): void; /** * The last thing less's term_init does (screen.c:2071): park the cursor * at the start of the line. * * It belongs to the TERMINAL setup, not to the paint that happens to * come next, and the difference shows the moment something else comes * first: a `+cmd` is ungotten before the first prompt, so less echoes * the command behind this CR and paints afterwards. Folding the CR * into the first frame instead lost it whenever the first frame was * not the first output. */ export declare function termInitTail(): void; export declare function calculateDimensions(): void;