import { PopoverProps } from '../popover/interfaces'; import { NonCancelableEventHandler } from '../types/events'; export interface TooltipProps { /** * Content to display in the tooltip. */ content: React.ReactNode; /** * Function that returns the element the tooltip points to. * Can return null if the element is not yet mounted or available. */ getTrack: () => null | HTMLElement | SVGElement; /** * Determines where the tooltip is displayed when opened, relative to the trigger. If the tooltip doesn't have enough space to open in this direction, it automatically chooses a better direction based on available space. */ position?: TooltipProps.Position; /** * Callback fired when the user presses the Escape key while the tooltip is visible. */ onEscape?: NonCancelableEventHandler; } export declare namespace TooltipProps { /** * Position of the tooltip relative to the tracked element. */ type Position = PopoverProps.Position; }