UNPKG

1.08 kBTypeScriptView Raw
1import { DialogProps, HotkeyProps } from "../components";
2interface HotkeysDialogProps extends DialogProps {
3 /**
4 * This string displayed as the group name in the hotkeys dialog for all
5 * global hotkeys.
6 */
7 globalHotkeysGroup?: string;
8}
9/** @deprecated use HotkeysProvider */
10export declare function isHotkeysDialogShowing(): boolean;
11/** @deprecated use HotkeysProvider */
12export declare function setHotkeysDialogProps(props: Partial<HotkeysDialogProps>): void;
13/** @deprecated use HotkeysProvider */
14export declare function showHotkeysDialog(hotkeys: HotkeyProps[]): void;
15/** @deprecated use HotkeysProvider */
16export declare function hideHotkeysDialog(): void;
17/**
18 * Use this function instead of `hideHotkeysDialog` if you need to ensure that all hotkey listeners
19 * have time to execute with the dialog in a consistent open state. This can avoid flickering the
20 * dialog between open and closed states as successive listeners fire.
21 *
22 * @deprecated use HotkeysProvider
23 */
24export declare function hideHotkeysDialogAfterDelay(): void;
25export {};