export declare const HotkeyModifier: { readonly CTRL: number; readonly ALT: number; readonly SHIFT: number; readonly META: number; }; export declare const HotkeyCode: { readonly Y: 89; readonly Z: 90; }; /** * Checks if the passed keyboard event match the required hotkey. * * @example * input.addEventListener('keydown', (event) => { * if (isHotkey(event, HotkeyModifier.CTRL | HotkeyModifier.SHIFT, HotkeyCode.Z)) { * // redo hotkey pressed * } * }) * * @return will return `true` only if the {@link HotkeyCode} matches and only the necessary * {@link HotkeyModifier modifiers} have been pressed */ export declare function isHotkey(event: KeyboardEvent, modifiers: (typeof HotkeyModifier)[keyof typeof HotkeyModifier], hotkeyCode: (typeof HotkeyCode)[keyof typeof HotkeyCode]): boolean;