import { Reason } from "./constants"; import { KeyboardRegularButton } from "./types"; import { _GlobalHotkey } from "./addon"; import { Hotkey, HotkeyOptions } from "./utils/handleAction"; export type GlobalHotkeyOptions = { key: KeyboardRegularButton | number; } & HotkeyOptions, S, R>; declare class GlobalHotkey extends _GlobalHotkey implements Hotkey { state: S; isRunning: boolean; stop: (reason?: Reason.BY_STOP | R) => Promise | undefined; /** * Registers a hotkey, if any hotkey is already registered for this {@link GlobalHotkeyOptions.key key}, {@link GlobalHotkey.unregister unregisters} the previous hotkey and registers a new hotkey */ constructor(options: GlobalHotkeyOptions); } export default GlobalHotkey;