type KeyPressAction = 'up' | 'down' | 'left' | 'right' | 'home' | 'end' | 'pageUp' | 'pageDown'; type FocuslyKeyChord = string | string[]; type FocuslyKeyMap = Partial>; declare const DEFAULT_FOCUSLY_KEYMAP: FocuslyKeyMap; type ModifierKey = 'alt' | 'ctrl' | 'shift' | 'meta'; interface KeyChordConfig { key: string; alt?: boolean; ctrl?: boolean; shift?: boolean; meta?: boolean; } /** * Canonicalise a key chord: * - modifiers in order: alt, shift, ctrl, meta * - key lowercased * - joined by '+', e.g. "ctrl+arrowup" */ declare function canonicaliseKeyChord(config: KeyChordConfig): string; declare function createKeyChord(config: KeyChordConfig): string; declare function createKeyChord(...configs: KeyChordConfig[]): FocuslyKeyChord; declare function parseKeyChord(raw: string): KeyChordConfig | null; declare function normaliseKeyChordString(raw: string): string; declare function chordFromKeyboardEvent(e: KeyboardEvent): string; export { DEFAULT_FOCUSLY_KEYMAP, canonicaliseKeyChord, chordFromKeyboardEvent, createKeyChord, normaliseKeyChordString, parseKeyChord }; export type { FocuslyKeyChord, FocuslyKeyMap, KeyChordConfig, KeyPressAction, ModifierKey };