import { ParsedKey } from "./types"; /** * Parses a single shortcut string into a ParsedKey. * * Examples: * "ctrl+k" → { key: "k", modifiers: Set { "ctrl" } } * "ctrl+shift+p" → { key: "p", modifiers: Set { "ctrl", "shift" } } * "cmd+z" → { key: "z", modifiers: Set { "meta" } } * "a" → { key: "a", modifiers: Set {} } * "space" → { key: " ", modifiers: Set {} } * "enter" → { key: "Enter", modifiers: Set {} } */ export declare function parseShortcut(shortcut: string): ParsedKey; /** * Checks if a KeyboardEvent matches a ParsedKey. * Uses KeyboardEvent.key for correct international layout support. */ export declare function matchesEvent(parsed: ParsedKey, event: KeyboardEvent): boolean; //# sourceMappingURL=parser.d.ts.map