import type * as OpenFin from '../../OpenFin'; import { EmitterBase } from '../base'; import { Transport } from '../../transport/transport'; /** * The GlobalHotkey module can register/unregister a global hotkeys. * @namespace */ export default class GlobalHotkey extends EmitterBase { constructor(wire: Transport); /** * Registers a global hotkey with the operating system. * @param { string } hotkey a hotkey string * @param { Function } listener called when the registered hotkey is pressed by the user. * @return {Promise.} * @tutorial GlobalHotkey.register */ register(hotkey: string, listener: (...args: any[]) => void): Promise; /** * Unregisters a global hotkey with the operating system. * @param { string } hotkey a hotkey string * @return {Promise.} * @tutorial GlobalHotkey.unregister */ unregister(hotkey: string): Promise; /** * Unregisters all global hotkeys for the current application. * @return {Promise.} * @tutorial GlobalHotkey.unregisterAll */ unregisterAll(): Promise; /** * Checks if a given hotkey has been registered * @param { string } hotkey a hotkey string * @return {Promise.} * @tutorial GlobalHotkey.isRegistered */ isRegistered(hotkey: string): Promise; }