import { HotkeyOptions, Platform, ParsedHotkey } from './types.mjs'; declare function parseHotkey(hotkey: string, platform: Platform): ParsedHotkey; declare function matchesHotkeyStep(step: { key: string; code?: string | undefined; alt?: boolean | undefined; ctrl?: boolean | undefined; meta?: boolean | undefined; shift?: boolean | undefined; }, event: KeyboardEvent): boolean; declare function matchesHotkey(parsed: ParsedHotkey, event: KeyboardEvent): boolean; declare function shouldTrigger(event: KeyboardEvent, options: HotkeyOptions): boolean; declare function isHotKey(hotkey: string | string[], event: KeyboardEvent, options?: HotkeyOptions, platform?: Platform): boolean; /** * Resolve a hotkey string to a canonical form, so that equivalent hotkeys written * differently (`mod+k`, `Meta+K`) produce the same string. Useful as a stable identity * key for a registered hotkey. */ declare function normalizeHotkey(hotkey: string, platform?: Platform): string; declare function isHotkeyEqual(a: string, b: string, platform?: Platform): boolean; declare function getHotkeyPriority(parsed: ParsedHotkey): number; export { getHotkeyPriority, isHotKey, isHotkeyEqual, matchesHotkey, matchesHotkeyStep, normalizeHotkey, parseHotkey, shouldTrigger };