/** * Action router (V2-033). * * Resolves a normalized key chord to a semantic action given the active input * context. Context bindings win over `global`, so a picker can rebind Enter * without losing global cancel. Validates on construction so a conflicting * keymap fails fast instead of resolving nondeterministically. */ import type { ActionContext, ActionId } from "./action-id.js"; import { type KeyBinding } from "./keymap.js"; export declare class ActionRouter { private readonly byContext; constructor(bindings?: readonly KeyBinding[]); /** Resolve a chord in `context`, then fall back to `global` unless `context` traps input. */ resolve(chord: string, context: ActionContext): ActionId | undefined; /** All chords bound to an action, for help/status display. */ chordsFor(action: ActionId): string[]; }