import { type RefObject } from 'react'; /** * Restores focus to the action menu trigger when the menu is closed via the keyboard. * * The action menus unmount the whole `Menu` while closed (`Menu.Trigger` included). Therefore, * the trigger that the menu would restore focus to is already gone and focus falls back to * the body. Attach `triggerRef` to the trigger of the closed menu and pass `onCloseAutoFocus` * to `Menu.Content` to focus the surviving trigger instead. * @param isMenuOpen - whether the menu is currently open. * @internal */ export declare function useRestoreFocusOnMenuClose(isMenuOpen: boolean): { triggerRef: RefObject; onCloseAutoFocus: (event: Event) => void; }; //# sourceMappingURL=useRestoreFocusOnMenuClose.d.ts.map