import React from 'react'; import * as TooltipPrimitive from '@radix-ui/react-tooltip'; import { DefaultProps, FlowindSize, Selectors } from '../../styles'; import { ForwardRefWithStaticComponents } from '../../utils/forwardRef-with-static-components'; import useStyles, { TooltipStylesParams } from './tooltip.styles'; export type TooltipStylesNames = Selectors; type ContentProps = React.ComponentPropsWithoutRef; interface TooltipContentProps extends Omit { showArrow?: boolean; } export interface TooltipProps extends TooltipContentProps, DefaultProps { /** Tooltip content */ content: React.ReactNode; /** Open delay in ms */ delayDuration?: number; /** Close delay in ms, `0` by default */ closeDelay?: number; /** How much time a user has to enter another trigger without incurring a delay again. */ skipDelayDuration?: number; /** Prevents Tooltip.Content from remaining open when hovering. Disabling this has accessibility consequences. */ disableHoverableContent?: boolean; /** Controlled opened state */ open?: boolean; defaultOpen?: boolean; /** Event handler called when the open state of the tooltip changes. */ onOpenChange?: (open: boolean) => void; /** Space between target element and tooltip in px, `5` by default */ sideOffset?: number; /** Determines whether the tooltip should have an arrow, `false` by default */ showArrow?: boolean; /** Determines which events will be used to show tooltip, `{ hover: true, focus: false, touch: false }` by default */ events?: { hover: boolean; focus: boolean; touch: boolean; }; /** If set, the tooltip will not be unmounted from the DOM when it is hidden, `display: none` styles will be applied instead */ keepMounted?: boolean; width?: number; color?: 'light' | 'dark'; /** Key of theme.radius or any valid CSS value to set border-radius, theme.defaultRadius by default */ radius?: FlowindSize; disabled?: boolean; } export declare const TooltipProvider: ({ children, ...props }: TooltipPrimitive.TooltipProviderProps) => React.JSX.Element; declare const TooltipContent: React.ForwardRefExoticComponent>; export declare const Tooltip: ForwardRefWithStaticComponents; export {};