import * as React from 'react'; import { DropdownOption } from './types'; export interface MenuItemProps { onSelect: (item: DropdownOption) => any; item: DropdownOption; selected?: boolean; } /** * Represents the default MenuItem in the dropdown list. */ export default class MenuItem extends React.Component { el?: HTMLDivElement; setRef: (el: HTMLDivElement) => HTMLDivElement; componentWillReceiveProps(props: MenuItemProps): void; componentDidMount(): void; scrollIfNeeded(props: MenuItemProps): void; private _onClick; render(): JSX.Element; }