import { PropsWithChildren, ReactElement } from "react";
import { DisplayInsets, Placement } from "./utils/types";
type CommonProps = {
    /**
     * The title text displayed at the top of the tooltip.
     */
    title: string;
    /**
     * The tooltip text content.
     */
    content: string;
    /**
     * Controls the visibility of the tooltip.
     */
    isVisible: boolean;
    /**
     * Initial tooltip position; can be 'top', 'bottom', 'left', or 'right'.
     * @default top
     */
    placement?: Placement;
    /**
     * Insets for adjusting tooltip position within screen boundaries.
     * @default {}
     */
    displayInsets?: Partial<DisplayInsets>;
    /**
     * Accessibility label for the close icon button.
     */
    closeIconAccessibilityLabel: string;
    /**
     * Determines whether interactions with the tooltip's children are allowed when `isVisible` is set to true.
     * @default false
     */
    childrenInteractionsEnabled?: boolean;
    /**
     *  Callback function triggered when the tooltip is closed.
     */
    onClose: () => void;
};
type CloseWithTapOnBackground = {
    /**
     * Allows closing the tooltip by tapping outside of it.
     */
    allowCloseOnBackgroundTap: true;
    /**
     * Accessibility label for the tooltip background mask.
     */
    backgroundAccessibilityLabel: string;
};
type CloseWithBackgroundTapDisabled = {
    allowCloseOnBackgroundTap?: false;
};
type Props = CommonProps & (CloseWithTapOnBackground | CloseWithBackgroundTapDisabled);
/**
 * Tooltip component that displays a contextual tooltip around its children.
 * The tooltip position is controlled by the `placement` prop and can adjust
 * dynamically if there is insufficient space.
 * @param {Props} props - The component props
 *
 * @returns {ReactElement} A tooltip component rendered around the specified children.
 */
export declare const Tooltip: ({ children, title, content, placement: initialPlacement, closeIconAccessibilityLabel, isVisible, displayInsets, allowCloseOnBackgroundTap, childrenInteractionsEnabled, onClose }: PropsWithChildren<Props>) => ReactElement;
export {};
//# sourceMappingURL=Tooltip.d.ts.map