/** * Key name normalization + platform key tables. * * Chord notation: "cmd+c", "ctrl+shift+t", "enter", "alt+F4". * Modifier aliases: cmd/command/meta/super/win -> "meta", option/alt -> "alt", * control/ctrl -> "ctrl", plus the unicode glyphs ⌘ ⌥ ⇧ ⌃. */ export type ModifierToken = "ctrl" | "shift" | "alt" | "meta"; /** macOS virtual keycodes for common keys (kVK_* from Events.h). */ export declare const MACOS_KEYCODES: Record; /** Shifted ASCII char -> base key (typed with FLAG_SHIFT). */ export declare const MACOS_SHIFTED: Record; /** CGEventFlagMask values. */ export declare const MACOS_MODIFIER_FLAGS: Record; /** Windows virtual-key codes. */ export declare const WINDOWS_VK: Record; export declare const WINDOWS_MODIFIER_VK: Record; /** X keysym names for xdotool/wtype. */ export declare const XDOTOOL_KEYS: Record; export declare const XDOTOOL_MODIFIERS: Record; export declare function asModifier(raw: string): ModifierToken | null; /** Normalize a key name; returns the input lowercased when unknown (callers decide what to do). */ export declare function normalizeKey(raw: string): string; export declare function isModifierToken(raw: string): boolean; /** * Parse a chord like "cmd+shift+t" into modifiers + final key. * Returns null for empty input or multiple non-modifier keys. */ export declare function parseChord(raw: string): { modifiers: ModifierToken[]; key: string; } | null; //# sourceMappingURL=keys.d.ts.map