import * as React from 'react'; interface TooltipProps { content?: React.ReactNode; visible?: boolean; fadeTransition?: number; } interface TooltipState { content: React.ReactNode; visible: boolean; zIndex: number; left: number; top: number; } export declare class TooltipComponent extends React.Component { static defaultProps: { content: string; visible: boolean; fadeTransition: number; }; private tooltipRef; private lastMousePosition; private isMouseOver; private debouncedUpdate; constructor(props: TooltipProps); componentDidMount(): void; componentDidUpdate(prevProps: TooltipProps): void; componentWillUnmount(): void; render(): React.ReactPortal; private calculateAndSetPosition; /** * Updates the tooltip state with special handling for different scenarios. * * This method is debounced to prevent rapid state changes and handles several edge cases: * 1. If mouse is over the tooltip, cancels the update to prevent hiding while user is interacting * 2. When hiding the tooltip, maintains content and z-index during fade-out animation * 3. When showing the tooltip, updates position and immediately sets z-index to visible * 4. When changing content, remove user selected text (fixes a weird bug) * * @param newState - Partial state update to be applied */ private updateState; private handleMouseMove; private handleMouseLeave; private handleScroll; private handleTransitionEnd; private handleTooltipMouseEnter; private handleTooltipMouseLeave; private clearSelection; } export {}; //# sourceMappingURL=tooltip-component.d.ts.map