type MenuHook = { /** * The Id of the menu that is currently open * * @type {string | null} */ openMenuId: string | null; /** * Dispatches a TOGGLE_MENU action, which should cause the menu to close if it is open, or to open if it is closed. */ toggleMenu: () => void; /** * Dispatches a CLOSE_MENU action, which should cause the menu to close if it is open. */ closeMenu: () => void; /** * Dispatches a CLOSE_MENU action after a timeout (DURATION in ms). See description in useMenu comments. */ blurMenu: () => void; /** * Dispatches a OPEN_MENU action, which should cause the menu to open if it is closed. */ openMenu: () => void; /** * Returns true if the id of the menu matches the currently active menu * @return boolean - Returns true if the menu is active */ isMenuActive: () => boolean; }; /** * A hook for working with menus. It gets its implicit menu "id" from React context. * It dispatches actions to the reducer to modify menu state across MenuShell instances. * * See menuReducer.ts for "toggle/blur" race condition algorithm * * Setting window.FEAGlobals.FSBL.debug=true will override menu close on blur, to make it easier to debug windows */ export declare const useMenu: () => MenuHook; export {}; //# sourceMappingURL=useMenu.d.ts.map