import { Component } from 'react'; import { MenuContext } from '../../../utils/v1/MenuContext'; import type { MenuItemProps, MenuItemState } from './props'; /** --- parent: Menu id: Menu.Item --- **/ declare class MenuItem extends Component { static readonly componentId = "Menu.Item"; static allowedProps: readonly (keyof { children: React.ReactNode; defaultSelected?: boolean; selected?: boolean; onSelect?: import("./props").OnMenuItemSelect; onClick?: (e: React.MouseEvent) => void; onKeyDown?: (e: React.KeyboardEvent) => void; onKeyUp?: (e: React.KeyboardEvent) => void; onMouseOver?: (e: React.MouseEvent, args: MenuItem) => void; controls?: string; disabled?: boolean; as?: import("@instructure/shared-types").AsElementType; type?: "button" | "checkbox" | "radio" | "flyout"; value?: string | number; href?: string; target?: string; renderLabelInfo?: React.ReactNode | (() => React.ReactNode); })[]; static defaultProps: { readonly type: "button"; readonly disabled: false; }; context: React.ContextType; static contextType: import("react").Context<{ registerMenuItem: (_value: any) => void; removeMenuItem: (_value: any) => void; }>; constructor(props: MenuItemProps); get _node(): Element | null; labelId: string; ref: Element | null; handleRef: (el: Element | null) => void; componentDidMount(): void; componentDidUpdate(): void; componentWillUnmount(): void; handleClick: (e: React.MouseEvent) => void; handleKeyDown: (e: React.KeyboardEvent) => void; handleKeyUp: (e: React.KeyboardEvent) => void; handleMouseOver: (event: React.MouseEvent) => void; handleMouseEnter: () => void; handleMouseLeave: () => void; handleFocusEvent: () => void; handleBlurEvent: () => void; getIconColor: () => "baseColor" | "inverseColor"; get elementType(): import("react").ComponentClass | NonNullable | import("react").ComponentClass, any> | import("react").FunctionComponent>; get role(): "menuitem" | "menuitemcheckbox" | "menuitemradio"; get selected(): boolean | undefined; get focused(): boolean; focus(): void; renderContent(): import("@emotion/react/jsx-runtime").JSX.Element; render(): import("@emotion/react/jsx-runtime").JSX.Element; } export default MenuItem; export { MenuItem }; //# sourceMappingURL=index.d.ts.map