import type { ValidKeys, NumberKey, UppercaseKey, NavigationKey } from '../../types/Keybind'; import type Keybind from '../../types/Keybind'; /** * Map of special keys to their key codes. */ declare const SPECIAL_KEY_MAP: { readonly '`': "Backquote"; readonly '\'': "Quote"; readonly '/': "Slash"; readonly ",": "Comma"; readonly "-": "Minus"; readonly ".": "Period"; readonly "=": "Equal"; readonly ";": "Semicolon"; readonly "[": "BracketLeft"; readonly "]": "BracketRight"; readonly "\\": "Backslash"; readonly Enter: "Enter"; readonly Space: "Space"; readonly Tab: "Tab"; }; type ValidKeyCodes = (`Key${UppercaseKey}` | `Digit${NumberKey}` | NavigationKey | typeof SPECIAL_KEY_MAP[keyof typeof SPECIAL_KEY_MAP]); declare const isAlpha: (key: string) => key is "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z"; declare const isNumber: (key: string) => key is "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"; declare const keyToKeyCode: (key: ValidKeys) => ValidKeyCodes; /** * Check if a keybind matches a keyboard event. * @param keybind The keybind to check. * @param event The keyboard event to check. */ declare const checkKeybind: (keybind: Keybind, event: KeyboardEvent) => boolean; export type { ValidKeyCodes }; export { keyToKeyCode, isAlpha, isNumber, SPECIAL_KEY_MAP }; export default checkKeybind; //# sourceMappingURL=checkKeybind.d.ts.map