import * as React from "react"; import * as PropTypes from "prop-types"; import AddBlurEvent from "../utils/AddBlurEvent"; import { RevealEffectProps } from "../RevealEffect"; export interface DataProps { /** * Set icon to Menu Item. */ icon?: string; /** * Set label text to Menu Item. */ label?: string; /** * Set Menu Item nested children. */ children?: MenuItem | MenuItem[] | React.ReactElement | React.ReactElement[]; /** * Set default expanded children. */ defaultExpanded?: boolean; /** * Set Menu Item width. */ itemWidth?: number; /** * Set Menu Item height. */ itemHeight?: number; /** * Set Menu Item hovered style. */ hoverStyle?: React.CSSProperties; /** * Set Menu Item expanded method. */ expandedMethod?: "active" | "hover"; /** * Set RevealEffect, check the styles/reveal-effect. */ revealConfig?: RevealEffectProps; } export interface AnyAttributes { [key: string]: any; } export interface MenuItemProps extends DataProps, AnyAttributes { } export interface MenuItemState { expanded?: boolean; } export declare class MenuItem extends React.Component { static defaultProps: MenuItemProps; state: MenuItemState; addBlurEvent: AddBlurEvent; rootElm: HTMLDivElement; static contextTypes: { theme: PropTypes.Requireable; }; context: { theme: ReactUWP.ThemeType; }; componentWillReceiveProps(nextProps: MenuItemProps): void; addBlurEventMethod: () => void; componentDidMount(): void; componentDidUpdate(): void; componentWillUnmount(): void; toggleExpanded: (expanded?: any) => void; render(): JSX.Element; } export default MenuItem;