import React from 'react'; import { MenuItemProps, MenuProps } from '@mui/material'; type BooleanFunction = (context?: T) => boolean; export type TooltipPlacement = 'bottom' | 'left' | 'right' | 'top' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined; export type DropdownMenuItem = Omit & { label: string; tooltipText?: string; tooltipPlacement?: TooltipPlacement; disabled?: BooleanFunction | boolean; children?: Array>; handleClick?: (context?: T, mouseEvent?: React.MouseEvent) => void; }; export interface DropdownMenuProps extends MenuProps { context?: T; menuItems: Array>; } declare const DropdownMenu: ({ context, menuItems, ...menuProps }: DropdownMenuProps) => React.JSX.Element; export default DropdownMenu;