/** * Utilities for formatting keybinding hints in the UI. */ import { type Keybinding } from "@kolisachint/hoocode-tui"; import { type AppKeybinding } from "../../../core/keybindings.js"; export interface KeyTextFormatOptions { capitalize?: boolean; } export declare function formatKeyText(key: string, options?: KeyTextFormatOptions): string; export declare function keyText(keybinding: Keybinding): string; export declare function keyDisplayText(keybinding: Keybinding): string; /** * The taught key for a binding — the first one — and nothing else. * * `keyDisplayText` names every key an action answers to, which is right for a * reference row and wrong wherever the shape of the hint is the thing being * taught: the dials read `alt+t/shift+alt+t`, and a second forward key spliced * into the middle of that is what the one-shape rule exists to avoid. */ export declare function keyDisplayLabel(keybinding: Keybinding): string; export declare function keyHint(keybinding: Keybinding, description: string): string; export declare function rawKeyHint(key: string, description: string): string; /** * Match input against an app-level keybinding. The global manager is the * app-aware one in normal runs (user overrides apply); when it is the bare TUI * default (tests, early boot) the app definition's default keys are used so * the component never goes dead. */ export declare function matchesAppKey(data: string, id: AppKeybinding): boolean; /** First configured key for an app-level binding, for hint lines. */ export declare function appKeyLabel(id: AppKeybinding): string; //# sourceMappingURL=keybinding-hints.d.ts.map