/** * The footer and the page keys: what the panel offers to press, and the tab * keys that switch the list under it. * * @author mystery4f <40482524+mystery4f@users.noreply.github.com> */ import { type PanelTab } from "./model.js"; /** * The list's keys, widest first (ADR-0012): one model, three lists. A narrow * terminal takes a shorter variant whole rather than a cut-off one, so a reader * near the right edge never meets half a key (ticket #34). */ export declare const LIST_KEYS: readonly string[]; /** The keys under a process detail, widest first, for the same reason as `LIST_KEYS`. */ export declare const PROCESS_KEYS: readonly string[]; /** * The footer that fits the room, taken whole: the first candidate that fits wins, * and only when none does is the shortest cut. Cutting the long one instead would * leave a reader with `alt+q clo` and the border a column off. */ export declare function fittedFooter(candidates: readonly string[], room: number): string; export declare function pad(text: string, width: number): string; /** * The page a keypress asks for: `1`, `2`, `3` name one directly and `tab` walks from * the open page to the next, wrapping after the last (ADR-0012). Everything else * returns `undefined` and stays a row key. */ export declare function pageKey(data: string, current: PanelTab): PanelTab | undefined;