import React from 'react'; import { MenuProps } from '@mui/material/Menu'; import { MenuItemProps } from '@mui/material/MenuItem'; export interface NestedMenuItemProps extends Omit { /** * Open state of parent ``, used to close decendent menus when the * root menu is closed. */ parentMenuOpen: boolean; /** * Component for the container element. * @default 'div' */ component?: React.ElementType; /** * Effectively becomes the `children` prop passed to the `` * element. */ label?: React.ReactNode; /** * @default */ rightIcon?: React.ReactNode; /** * Props passed to container element. */ ContainerProps?: React.HTMLAttributes & React.RefAttributes; /** * Props passed to sub `` element */ MenuProps?: Omit; /** * @see https://material-ui.com/api/list-item/ */ button?: true | undefined; } /** * Use as a drop-in replacement for `` when you need to add cascading * menu elements as children to this component. */ declare const NestedMenuItem: React.ForwardRefExoticComponent & React.RefAttributes>; export default NestedMenuItem;