import type { FC, ReactNode } from 'react'; import type { OpenStateProps, PopperContentProps, TriggerProps } from '../../utils/primitiveProps.js'; import type { CSSProperties } from 'react'; import type { SxProp } from '../Layout/sx.js'; export interface TooltipProviderProps { /** Delay before the first tooltip in a group opens on hover, in ms. Keyboard focus opens instantly. Default: 300. */ delayDuration?: number; /** Window in which subsequent tooltips open instantly, in ms. Default: 300. */ skipDelayDuration?: number; /** Prevent the content itself from keeping the tooltip open on hover. */ disableHoverableContent?: boolean; children?: ReactNode; } export declare const TooltipProvider: FC; export interface TooltipProps { /** The element that triggers the tooltip on hover/focus. */ children: ReactNode; /** Tooltip text or node. */ content: ReactNode; /** Side preference. Auto-flips when there's no room. Default: `top`. */ side?: 'top' | 'right' | 'bottom' | 'left'; /** Alignment along the side. Default: `center`. */ align?: 'start' | 'center' | 'end'; /** Pixels between the trigger and the tooltip. Default: 6. */ sideOffset?: number; /** Override delay (ms) before showing. Falls back to TooltipProvider's delay. */ delayDuration?: number; /** Controlled open state. Mostly for testing. */ open?: boolean; /** Show on touch long-press (hover never fires on touch). Default: true. */ longPress?: boolean; /** Disable the tooltip but keep the trigger interactive. */ disabled?: boolean; /** Extra className on the popup. */ contentClassName?: string; /** Inline style on the tooltip bubble. */ contentStyle?: CSSProperties; /** * One-off CSS for the tooltip bubble, same as `Box`'s `sx`: each value may be * a scalar or a responsive breakpoint map (`{ base, sm, md, lg, xl }`). * Scalar-only sx merges into inline style; responsive sx injects a scoped class. */ sx?: SxProp; } /** * Single-shot tooltip. Pass any element as `children` and it becomes the * trigger. The element must accept a ref (or wrap in `asChild` via Radix). * * @example * * * */ export declare const Tooltip: import("react").ForwardRefExoticComponent>; export interface TooltipRootProps extends Omit { /** Delay before opening, in ms. Overrides the provider default. */ delayDuration?: number; /** Prevent the content itself from keeping the tooltip open on hover. */ disableHoverableContent?: boolean; } export declare const TooltipRoot: FC; export type TooltipTriggerProps = TriggerProps; export declare const TooltipTrigger: FC; export type TooltipContentProps = PopperContentProps & { /** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */ sx?: SxProp; }; export declare const TooltipContent: import("react").ForwardRefExoticComponent>;