/** @packageDocumentation * @module Popup */ import "./Tooltip.scss"; import * as React from "react"; import type { CommonProps } from "@itwin/core-react"; import { Point } from "@itwin/core-react/internal"; import type { XAndY } from "../state/internal/NineZoneStateHelpers.js"; import type { SizeProps } from "../../utils/SizeProps.js"; import type { RectangleProps } from "../../utils/RectangleProps.js"; /** Properties of [[Tooltip]] component. * @internal */ export interface TooltipProps extends CommonProps { /** Tooltip content. */ children?: React.ReactNode; /** Tooltip icon. */ icon?: React.ReactNode; /** Function called when the bounds of the tooltip changes. */ onSizeChanged?: (size: SizeProps) => void; /** Position of the tooltip. */ position: XAndY; } /** Default properties of [[Tooltip]] component. * @internal */ export type TooltipDefaultProps = Pick; /** Positionable tooltip component. * @internal */ export declare class Tooltip extends React.PureComponent { static readonly defaultProps: TooltipDefaultProps; private _lastSize; private _tooltip; render(): React.JSX.Element; componentDidMount(): void; componentDidUpdate(): void; private onSizeChanged; } /** Function to apply offset and contain tooltip bounds in container. * @internal */ export declare const offsetAndContainInContainer: (tooltipBounds: RectangleProps, containerSize: SizeProps, offset?: XAndY) => Point; //# sourceMappingURL=Tooltip.d.ts.map