import * as React from "react";
interface FlippingTooltipProps {
    /** X position within the chart area (relative to margin.left) */
    x: number;
    /** Y position within the chart area (relative to margin.top) */
    y: number;
    /** Chart area width (excluding margins) */
    containerWidth: number;
    /** Chart area height (excluding margins) */
    containerHeight: number;
    /** Chart margins */
    margin: {
        left: number;
        top: number;
        right: number;
        bottom: number;
    };
    /** Tooltip content */
    children: React.ReactNode;
    /** CSS class name for the wrapper */
    className?: string;
    /** z-index (default 1) */
    zIndex?: number;
}
/**
 * Viewport-aware tooltip wrapper that flips horizontally and vertically
 * when the tooltip would overflow the chart container.
 *
 * On first render, uses a heuristic (similar to the old 70%/30% thresholds).
 * After measuring the actual tooltip size via ref, repositions precisely to
 * prevent clipping against container edges.
 */
export declare function FlippingTooltip({ x, y, containerWidth, containerHeight, margin, children, className, zIndex }: FlippingTooltipProps): import("react/jsx-runtime").JSX.Element;
export {};
