///
import type { ReactElement } from 'react';
import React from 'react';
import { GlobalContext } from '../Utils/contexts';
declare global {
interface Window {
richContentHideTooltips: boolean;
}
}
interface Props {
content?: React.ReactNode;
tooltipOffset?: {
x: number;
y: number;
};
children: ReactElement;
isError?: boolean;
place?: 'top' | 'bottom' | 'left' | 'right';
followMouse?: boolean;
hideArrow?: boolean;
forceVisibility?: boolean;
}
declare class Tooltip extends React.Component {
static defaultProps: {
isError: boolean;
place: string;
tooltipOffset: {
x: number;
y: number;
};
};
disabled: boolean;
mousePosition: {
x: number;
y: number;
};
timeoutId: NodeJS.Timeout;
state: {
tooltipVisible: boolean;
};
static contextType: React.Context<{
experiments: import("ricos-types").AvailableExperiments;
isMobile: boolean;
t?: import("ricos-types").TFunction | undefined;
languageDir?: import("ricos-types").TextDirection | undefined;
}>;
context: React.ContextType;
componentDidUpdate(): void;
componentWillUnmount(): void;
showTooltip: (e: MouseEvent) => void;
onMouseMove: (e: MouseEvent) => void;
updateTooltipPosition: () => void;
hideTooltip: () => void;
wrappChildrenProp: (propName: string, func: (e?: MouseEvent) => void) => {
[x: string]: (e: any) => void;
};
wrapperProps: {
[x: string]: (e: any) => void;
};
render(): React.JSX.Element;
}
export default Tooltip;
//# sourceMappingURL=Tooltip.d.ts.map