export type KeyAction = 'quit' | 'move' | 'use' | 'force' | 'toggle' | 'rotate' | 'add' | 'rename' | 'login' | 'none'; export interface KeyOutcome { /** New selection index (clamped to the row count). */ selected: number; action: KeyAction; } /** * Pure key dispatch for the live dashboard: given a key (and its first byte, for * control keys) plus the current selection, decide the new selection and which * action to run. Keeping this pure makes the interactive core testable without a * real terminal. */ export declare function dispatchKey(key: string, byte0: number | undefined, selected: number, count: number): KeyOutcome; /** Answer to a yes/no question in the dashboard. Anything but yes means no. */ export declare function confirmKey(key: string, byte0?: number): 'yes' | 'no';