/** @packageDocumentation
 * @module Popup
 */
import "./Tooltip.scss";
import * as React from "react";
import type { CommonProps, RectangleProps, SizeProps } from "@itwin/core-react";
import { Point } from "@itwin/core-react";
import type { XAndY } from "../state/internal/NineZoneStateHelpers";
/** 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<TooltipProps, "position">;
/** Positionable tooltip component.
 * @internal
 */
export declare class Tooltip extends React.PureComponent<TooltipProps> {
    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