import type StringToUnion from "./helpers/StringToUnion"; type LowercaseKey = StringToUnion<'abcdefghijklmnopqrstuvwxyz'>; type UppercaseKey = StringToUnion<'ABCDEFGHIJKLMNOPQRSTUVWXYZ'>; type NumberKey = StringToUnion<'0123456789'>; type SpecialKey = (StringToUnion<'`-=[]\\;\',./'> | 'Enter' | 'Space' | 'Tab'); type NavigationKey = ('ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight'); type ModifierKey = ('Alt' | 'Control' | 'Meta'); type ShiftKey = 'Shift'; /** * Valid keys for shortcuts. */ type ValidKeys = (LowercaseKey | UppercaseKey | NumberKey | SpecialKey | NavigationKey); /** * A combination of modifier keys that is unique. */ type UniqueModifierCombination = (ModifierKey | `${ModifierKey}+${ShiftKey}`); /** * Valid keybinds for blocks and shortcuts. */ type Keybind = (ValidKeys | `${UniqueModifierCombination}+${ValidKeys}`); export type { LowercaseKey, UppercaseKey, NumberKey, SpecialKey, ValidKeys, ModifierKey, ShiftKey, NavigationKey }; export default Keybind; //# sourceMappingURL=Keybind.d.ts.map