import React from 'react'; import PropTypes from 'prop-types'; import { ComponentProps } from '../utils/types'; interface AnchorMenuItemPropsBase { /** * Content to render inside the anchor link menu item. */ children?: React.ReactNode; /** * A React ref which is set to the DOM element when the component mounts and null when it unmounts. */ elementRef?: React.Ref; /** * A unique id for the item, used with the `AnchorMenu's` activeItemId prop. * If not set, defaults to the `to` prop if present. */ itemId?: string; label?: string; onClick?: React.MouseEventHandler; to?: string; } type AnchorMenuItemProps = ComponentProps; declare function Item({ children, elementRef, itemId: itemIdProp, label, onClick, to, ...otherProps }: AnchorMenuItemProps): React.JSX.Element; declare namespace Item { var propTypes: { children: PropTypes.Requireable; elementRef: PropTypes.Requireable; itemId: PropTypes.Requireable; label: PropTypes.Requireable; onClick: PropTypes.Requireable<(...args: any[]) => any>; to: PropTypes.Requireable; }; } export type { AnchorMenuItemProps, AnchorMenuItemPropsBase }; export default Item;