import React, { JSX, RefObject } from "react";
type Props = {
    children: JSX.Element;
    anchorRef: RefObject<HTMLElement | null>;
    open: boolean;
    className?: string;
    /**
     * Indicates the tooltip should be always visible on viewport
     *
     * @default true
     */
    containInViewport?: boolean;
    style?: any;
    alignment?: AnchoredTooltipAlignment;
};
export declare enum AnchoredTooltipAlignment {
    LEFT = 0,
    CENTER = 1,
    RIGHT = 2
}
export declare enum AnchoredTooltipAnchor {
    TOP = 0,
    BOTTOM = 1
}
export declare function updateTooltipPosition(tooltipRef: HTMLDivElement, anchorRef: HTMLElement, limitToViewport?: boolean, alignment?: AnchoredTooltipAlignment, anchorTo?: AnchoredTooltipAnchor): {
    shouldAnchorToBottom: boolean;
};
/**
 * This tooltip anchors itself to an element and handles positioning relative to the anchored element
 *
 * A simple popup that appears near another element, automatically positioning itself to stay visible
 * on the screen and adjusting its location if the page is scrolled or resized.
 */
declare const AnchoredTooltip: React.ForwardRefExoticComponent<Props & React.RefAttributes<{
    updatePosition: () => void;
} | null>>;
export default AnchoredTooltip;
