/** * Key Validity Matrix * * Defines which keys are valid in each UI state. * This is the core configuration for input validation. */ import type { UIState } from './types.js'; /** * Key validity sets for each UI state. * * Keys are identified by their normalized form: * - Regular characters: 'a', 'b', '/', ':' * - Special keys: 'escape', 'enter', 'up', 'down', 'left', 'right', 'tab', 'space' * - Modifier combinations: 'ctrl+c', 'ctrl+d', 'shift+tab' * - The special value '*' in command-palette means "any printable character" */ export declare const KEY_VALIDITY: Record>; /** * Check if a key is valid in the given state * * @param keyId - The normalized key identifier * @param state - The current UI state * @returns Whether the key is valid */ export declare function isKeyValidForState(keyId: string, state: UIState): boolean; /** * Get all valid keys for a given state */ export declare function getValidKeysForState(state: UIState): Set; /** * Get a human-readable description of valid keys for a state */ export declare function describeValidKeys(state: UIState): string; //# sourceMappingURL=key-matrix.d.ts.map