import { type ElementType, type ReactEventHandler, type ReactElement } from 'react'; import { type AriaLabelingProps, type DataTestId, type PolymorphicComponentProps, type StylingProps, type WithChildren } from '@dynatrace/strato-components/core'; /** * @public */ export interface MenuItemOwnProps extends WithChildren, AriaLabelingProps, StylingProps, DataTestId { /** * Whether the menu item is disabled. * If `true`, it prevents the user from interacting with the item and the item * being focused. */ disabled?: boolean; /** * Optional text used for typeahead purposes. By default, the typeahead * behavior will use the `.textContent` of the item. Use this when the content * is complex, or you have non-textual content inside. */ textValue?: string; /** * Event handler called when the user selects an item (via mouse or keyboard). * Calling `event.preventDefault()` in this handler prevents the dropdown menu * from closing when selecting that item. */ onSelect: ReactEventHandler; } /** * @public */ export type MenuItemProps = PolymorphicComponentProps; /** * The component that contains the dropdown menu Items. * @public */ export declare const Item: (props: MenuItemProps) => ReactElement | null;