import type { KeyEvent } from "@opentui/core"; export type KeyBinding = string | string[]; export type KeymapDefinition = { [K in TAction]: KeyBinding; }; export declare function eventToBinding(key: KeyEvent): string; export declare function matchesKeyBinding(key: KeyEvent, binding: KeyBinding): boolean; export type KeyMatcher = { match: (action: TAction, key: KeyEvent) => boolean; bindings: Record; }; export declare function createKeyMatcher(definition: KeymapDefinition): KeyMatcher; //# sourceMappingURL=keymap.d.ts.map