import React from 'react'; import type { DropdownProps as JoyDropdownProps } from '@mui/joy'; /** * Internal registry used by descendants that need the Dropdown to stay open while their * own popovers (typically portaled outside the Joy `Menu` listbox) take focus. While the * registry count is > 0 the Dropdown ignores Joy's blur-driven close, so focus moving into * a nested popover (e.g. a DateRangePicker / MonthRangePicker calendar) no longer collapses * the whole panel. Escape, the trigger toggle, and explicit `open` changes still close as * usual. * * Not part of the public package surface — consumed only by sibling HDS components that opt * in by registering on mount. */ type DropdownNestedRegistry = { register: () => void; unregister: () => void; }; export declare const DropdownNestedRegistryContext: React.Context; export type DropdownProps = JoyDropdownProps; declare function Dropdown({ open: openProp, defaultOpen, onOpenChange, ...rest }: DropdownProps): React.JSX.Element; declare namespace Dropdown { var displayName: string; } export { Dropdown }; export { MenuButton as MenuButtonTrigger } from '@mui/joy'; export type { MenuButtonProps as MenuButtonTriggerProps } from '@mui/joy'; export { useMenuButton } from '@mui/base/useMenuButton'; export type { UseMenuButtonParameters, UseMenuButtonReturnValue } from '@mui/base/useMenuButton';