/** * less's ltget_env: debug marker, terminfo-name override, then the * two-character termcap override. TERMCAP supplies our database fallback. */ export declare function terminalCapability(terminfo: string | null, termcap: string | null): string | undefined; /** * Whether the terminal database described this terminal. * * less always has an answer here: it links curses, so a capability the * entry omits is genuinely ABSENT and less uses the empty string. We * read the compiled entries ourselves, so a miss can also mean we * found no database to read - and there the hardcoded ANSI guesses * are the better answer. This tells the two apart. */ export declare function terminfoAnswered(): boolean; /** Forgets the loaded entry, so a fresh session re-reads $TERM. */ export declare function resetTerminfo(): void; export declare function terminalNumber(terminfo: string | null, termcap: string | null): number | undefined; export declare function terminalFlag(terminfo: string | null, termcap: string | null): boolean | undefined; /** Small tparm/tgoto subset covering less's row/column capabilities. */ export declare function formatTerminalCapability(capability: string, first: number, second: number): string;