type MenuHotKeyType = { open?: string[]; close?: string[]; }; /** * A component that registers a custom hotkeys pattern for opening and closing the menu. * This component is used privately by * * Note that a design decision was made to keep registry of "close" hotkeys simple. * We *could* have written extra logic so that the close hotkey is only registered * when the window is open but that seems unnecessary. Instead, every menu is always * registered with its hotkey. The net effect is that every menu will dispatch a CLOSE_MENU * action when "escape" is called. This creates a lot of dispatches but results in no operations * since all the other menus will already be closed. This was preferable over the potential * complication of logic that registers/unregisters a close hotkey with every menu open/close. * @param {string[]} [open] - An array of key names for opening the menu. * @param {string[]} [close] - An optional key-chord (e.g. ["ctrl","H"]) which will close the menu. Use this for instance when you want the same key-chord to toggle a menu open and closed. Note that the escape key will always close the menu. */ export declare const MenuHotKey: ({ open, close }: MenuHotKeyType) => null; export {}; //# sourceMappingURL=MenuHotKey.d.ts.map