import { Tooltip as BaseTooltip } from '@base-ui/react/tooltip'; import { type ReactElement, type ReactNode } from 'react'; export type TooltipSide = 'top' | 'bottom' | 'left' | 'right'; /** One popup serves every Tooltip below it, so each anchor costs only a trigger. * UIProvider mounts it; nothing else needs to. */ export declare function TooltipProvider({ children }: { children: ReactNode; }): import("react").JSX.Element; /** Props beyond the tooltip's own go to the anchor, so a Tooltip can be another * trigger's render target, such as a popover button with a hint. */ export interface TooltipProps extends Omit { /** Nothing to show disables the tooltip. Newlines in a string break lines. */ content: ReactNode; /** The anchor. It receives the trigger's props and ref, so it must pass them to its element. */ children: ReactElement; side?: TooltipSide; /** Keys shown beside the content as keycaps, written as `Kbd` takes them, such as * `Mod+F`: Command on an Apple keyboard, Control elsewhere. */ shortcut?: string | undefined; disabled?: boolean | undefined; /** Opens only while the anchor's text is clipped, such as a truncated label. */ overflowOnly?: boolean; /** Also the anchor's accessible description, for a hint that adds to its name * rather than repeating it, such as what Make default changes. Assistive * technology reads it with the anchor whether or not the tooltip is open. */ describesAnchor?: boolean | undefined; } /** A visual hint for sighted pointer and keyboard users. The anchor still needs * its own accessible name; `describesAnchor` also gives assistive technology the * hint. Use InfoTip for content everyone must reach, such as on a touch screen. */ export declare function Tooltip({ content, children, side, shortcut, disabled, overflowOnly, describesAnchor, ref, ...anchorProps }: TooltipProps): import("react").JSX.Element;