import { type ReactNode } from 'react'; /** Props passed to the `renderMenu` callback to render a framework-specific dropdown. */ export interface RenderMenuProps { /** The DOM element to anchor the menu to (null when closed). */ anchorEl: HTMLElement | null; /** Whether the menu is currently open. */ open: boolean; /** Call to close the menu. */ onClose: () => void; /** The menu item elements to render inside the dropdown. */ children: ReactNode; } /** Props for controlling the menu open/close state externally. */ export interface OverflowMenuControlProps { /** Controlled open state. When provided, you manage open/close. */ open?: boolean; /** Called when the menu opens or closes. Use alone for notifications, or with `open` for full control. */ onOpenChange?: (open: boolean) => void; } interface OverflowMenuProps extends OverflowMenuControlProps { opener: ReactNode; children: ReactNode; renderMenu: (props: RenderMenuProps) => ReactNode; } declare function OverflowMenu({ opener, children, renderMenu, open: controlledOpen, onOpenChange }: OverflowMenuProps): import("react/jsx-runtime").JSX.Element; declare namespace OverflowMenu { var overflowRole: "menu"; } export default OverflowMenu; //# sourceMappingURL=OverflowMenu.d.ts.map