import { ComponentPropsWithRef, ReactElement } from 'react'; import { Placement } from '@floating-ui/react'; export type TooltipProps = ComponentPropsWithRef<'span'> & { /** The element or component that is the tooltip's trigger */ children: ReactElement; /** The text inside the tooltip */ title: string; /** Where to mount the tooltip portal */ mountNodeId?: string; /** Preferred placement of the tooltip. [See options](https://floating-ui.com/docs/usefloating#placement) */ placement?: Placement; /** A time in ms to delay the tooltip apperance after hovering */ delay?: number; /** Whether the tooltip should appear on focus events (defaults to true) */ showOnFocus?: boolean; }; export declare const Tooltip: import('react').ForwardRefExoticComponent & import('react').RefAttributes>; export default Tooltip;