import type { KeyAction } from "./key-action"; /** * One mode's bindings, from chord (`Meta+Shift+l`), touchpad gesture * (`swipe:3:left`) or touchscreen edge swipe (`edge:left`, see * `gesture-binding.ts`) to action. A chord written `--inhibited Meta+Escape` * stays the shell's while the window with the keyboard holds a shortcuts * inhibitor, as sway's `bindsym --inhibited`. */ export type ModeKeybindings = Readonly>; /** A shell's keybindings: the `default` mode plus other modes by name. */ export type ShellKeybindings = { /** The `default` mode, active until a binding changes mode. */ readonly keybindings?: ModeKeybindings; /** Other modes, by name. */ readonly modes?: Readonly>; }; /** Each mode's bindings, by chord or gesture in its one spelling. */ export type KeybindingsByMode = ReadonlyMap>; /** * Files `own` by mode and spelled chord. * * Throws on a malformed chord, two spellings of one chord in a mode, or a * `modes.default`, so a bad binding fails loudly. */ export declare const ownKeybindings: (own: ShellKeybindings) => KeybindingsByMode; /** * Every chord `own` binds in any mode, once each, in its one spelling, and no * gestures. Throws as {@link ownKeybindings} does. */ export declare const ownedChords: (own: ShellKeybindings) => readonly string[]; /** * Every chord `own` binds `--inhibited` in any mode, in its one spelling. * Throws as {@link ownKeybindings} does. */ export declare const inhibitedChords: (own: ShellKeybindings) => ReadonlySet; /** * `written` in its one spelling: modifiers in {@link ORDER}, then the keysym. * A modifier alone (`Super`) is a tap of it, spelled as its name (`Meta`). */ export declare const spelled: (written: string) => string;