import React from 'react'; import { type MentionEventHandler } from '../../types'; import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents'; export declare const ANALYTICS_HOVER_DELAY = 1000; export declare const UNKNOWN_USER_ID = "_|unknown|_"; export type OwnProps = { accessLevel?: string; /** * Tooltip text shown on hover when the chip is disabled. Ignored when * `isDisabled` is false. When omitted, no tooltip is rendered even if * `isDisabled` is true. */ disabledTooltip?: string; id: string; /** * When true, the mention chip is rendered in its disabled visual state * (`MentionType.DISABLED`) and click handlers are not invoked. Takes * precedence over `isHighlighted` and the restricted state. */ isDisabled?: boolean; isHighlighted?: boolean; localId?: string; onClick?: MentionEventHandler; onHover?: () => void; onMouseEnter?: MentionEventHandler; onMouseLeave?: MentionEventHandler; ssrPlaceholderId?: string; text: string; }; export type Props = OwnProps & WithAnalyticsEventsProps; export declare class MentionInternal extends React.PureComponent { private hoverTimeout?; constructor(props: Props); componentDidMount(): void; private handleOnClick; private handleOnMouseEnter; private handleOnMouseLeave; private getMentionType; componentWillUnmount(): void; renderUnknownUserError(id: string): React.JSX.Element; render(): React.JSX.Element; } declare const Mention: React.ForwardRefExoticComponent & React.RefAttributes>; type Mention = MentionInternal; export default Mention;