import { CSSProperties, ReactNode } from 'react'; export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right'; export type VirtualReference = { getBoundingClientRect: () => DOMRect; }; export type TooltipProps = { /** Tooltip body. When empty, `children` render untouched with no listeners. */ content?: ReactNode; children: ReactNode; placement?: TooltipPlacement; /** Render `children` untouched, no tooltip at all. */ disabled?: boolean; delay?: number | { open?: number; close?: number; }; showArrow?: boolean; /** Arrow fill (any CSS colour, `var()` included). Defaults to the accent: blue in light, green in dark. */ arrowColor?: string; maxWidth?: number | string; /** * Allow pointer events on the bubble and keep it open while the pointer travels * there. Needed only when the content has links or selectable text — matches * react-tippy, which was non-interactive (`pointer-events: none`) by default. */ interactive?: boolean; /** * Controlled mode — when set, internal hover/tap/dismiss wiring is bypassed and * the caller owns visibility entirely. `onOpenChange` is therefore never called * in this mode; it only fires when the tooltip manages its own state. */ open?: boolean; onOpenChange?: (open: boolean) => void; /** Position against an arbitrary rect instead of `children` (charts, cursors). */ reference?: VirtualReference | null; className?: string; /** Applied to the bubble. */ style?: CSSProperties; zIndex?: number; }; export declare const Tooltip: ({ content, children, placement, disabled, delay, showArrow, arrowColor, maxWidth, interactive, open: controlledOpen, onOpenChange, reference, className, style, zIndex, }: TooltipProps) => import("react/jsx-runtime").JSX.Element; export default Tooltip;