import * as React from 'react'; import type { FloatingDelayGroup, Placement } from '@floating-ui/react'; import type { PolymorphicForwardRefComponent, PortalProps } from '../../utils/index.js'; export declare const defaultTooltipDelay: React.ComponentPropsWithoutRef['delay']; type TooltipOptions = { /** * Placement of the Tooltip * @default 'top' */ placement?: Placement; /** * Property for manual visibility control */ visible?: boolean; /** * Callback invoked every time the tooltip visibility changes as a result * of internal logic. Should be used alongside `visible` prop. */ onVisibleChange?: (visible: boolean) => void; /** * autoUpdate options that recalculates position * to ensure the floating element remains anchored * to its reference element, such as when scrolling * and resizing the screen. * * @see [floating-ui docs](https://floating-ui.com/docs/autoUpdate#options) */ autoUpdateOptions?: { ancestorScroll?: boolean; ancestorResize?: boolean; elementResize?: boolean; /** * Use this if you want Tooltip to follow moving trigger element */ animationFrame?: boolean; layoutShift?: boolean; }; /** * Tooltip middleware options. * * @see [floating-ui docs](https://floating-ui.com/docs/middleware) */ middleware?: { offset?: number; flip?: boolean; shift?: boolean; size?: boolean; autoPlacement?: boolean; hide?: boolean; inline?: boolean; }; /** * Sets reference point to user provided element. * @example * const [trigger, setTrigger] = React.useState(null); * ... *