
import * as react from "react";
import { MutableRefObject, ReactElement } from "react";
import { AriaMenuTriggerProps as AriaMenuTriggerProps$1, PositionProps } from "react-aria";
import { MenuTriggerState } from "react-stately";

//#region src/components/actions/Menu/MenuTrigger.d.ts
type CubeMenuTriggerProps = AriaMenuTriggerProps$1 & PositionProps & {
  isDisabled?: boolean;
  children: [ReactElement | ((state: MenuTriggerState) => ReactElement), ReactElement];
  closeOnSelect?: boolean;
  isDummy?: boolean;
  /**
   * External ref to the popover container element. When provided, it is
   * aliased to the internal `menuPopoverRef`, letting consumers (e.g.
   * `useAnchoredMenu` / `useContextMenu`) feed the popover container into
   * their own `usePopoverSync` so the nested-popover guard can recognize
   * submenus opened inside this menu. Optional.
   */
  popoverRef?: MutableRefObject<HTMLDivElement | null>;
  /**
   * Overlay variant to use on mobile screens. Defaults to `'popover'`, which
   * keeps the desktop overlay even on small viewports. Pass `'tray'` to opt
   * into the bottom-sheet `Tray` overlay on mobile (the previous implicit
   * default). Mirrors the `mobileType` API on `DialogTrigger`.
   */
  mobileType?: 'popover' | 'tray';
};
/**
 * The MenuTrigger serves as a wrapper around a Menu and its associated trigger,
 * linking the Menu's open state with the trigger's press state.
 */
declare let _MenuTrigger: react.ForwardRefExoticComponent<any>;
//#endregion
export { type AriaMenuTriggerProps$1 as AriaMenuTriggerProps, CubeMenuTriggerProps, _MenuTrigger };
//# sourceMappingURL=MenuTrigger.d.ts.map