import { Tooltip as TooltipPrimitive } from "radix-ui"; import { type ReactNode } from "react"; export declare const TooltipProvider: import("react").FC; interface BaseTooltipProps { children: ReactNode; side?: Parameters[0]["side"]; sideOffset?: Parameters[0]["sideOffset"]; align?: Parameters[0]["align"]; delayDuration?: Parameters[0]["delayDuration"]; open?: boolean; /** * By passing an element here, the tooltip will be rendered as the last child of this element. * If not, the tooltip will be rendered as the last child of the document.body element. * * Passing a specific element is useful i.e. when you're trying to display * a Tooltip in a container that has specified the `z-index` value. * Examples of such containers are Tiptap's BubbleMenu and SliceMachineModal. */ container?: Element | null; visible?: boolean; /** * By enabling the stable mount a `div` will be rendered around your trigger item. * * This is a workaround for a bug where mounting the Tooltip portal * inside another Portal rendered item causes the Tooltip to not open. * * @param stableMount * @defaultValue `false` This will wrap the trigger element in a Fragment. */ stableMount?: boolean; /** * Animation to use when showing/hiding the tooltip. * * @defaultValue "fade" */ animation?: "fade" | "none"; disableHoverableContent?: boolean; } interface TextTooltipProps extends BaseTooltipProps { variant?: "text"; content: string; title?: string; } interface CustomTooltipProps extends BaseTooltipProps { variant: "custom"; content: ReactNode; title?: never; } export type TooltipProps = TextTooltipProps | CustomTooltipProps; export declare function Tooltip(props: TooltipProps): JSX.Element; export {};