import * as React from 'react';
import { OverridableStringUnion, OverrideProps } from '@mui/types';
import { PopperUnstyledProps } from '@mui/base/PopperUnstyled';
import { MenuUnstyledActions } from '@mui/base/MenuUnstyled';
export { MenuUnstyledActions } from '@mui/base/MenuUnstyled';
import { ColorPaletteProp } from '../styles/types/colorSystem.js';
import { VariantProp } from '../styles/types/variants.js';
import '@mui/system';
declare type MenuSlot = "root" | "listbox";
interface MenuPropsSizeOverrides {
}
interface MenuPropsColorOverrides {
}
interface MenuPropsVariantOverrides {
}
interface MenuTypeMap
{
props: P & Omit & {
/**
* A ref with imperative actions.
* It allows to select the first or last menu item.
*/
actions?: React.Ref;
/**
* The color of the component. It supports those theme colors that make sense for this component.
* @default 'neutral'
*/
color?: OverridableStringUnion;
/**
* Triggered when focus leaves the menu and the menu should close.
*/
onClose?: () => void;
/**
* Controls whether the menu is displayed.
* @default false
*/
open?: boolean;
/**
* The size of the component (affect other nested list* components because the `Menu` inherits `List`).
*/
size?: OverridableStringUnion<"sm" | "md" | "lg", MenuPropsSizeOverrides>;
/**
* The variant to use.
* @default 'plain'
*/
variant?: OverridableStringUnion;
};
defaultComponent: D;
}
declare type MenuProps = OverrideProps, D>;
export { MenuProps, MenuPropsColorOverrides, MenuPropsSizeOverrides, MenuPropsVariantOverrides, MenuSlot, MenuTypeMap };