import { type ReactNode } from 'react'; import type { TooltipSide } from './Tooltip.js'; /** Infotip text can come from untrusted sources (workflow YAML), so all markup is literal text — only `[text](url)` links and newlines are parsed. */ export declare function formatInfoTipContent(content: string): ReactNode; interface InfoTipProps { text: string; side?: TooltipSide; className?: string | undefined; /** Replaces the info icon as the trigger, such as a status label the text explains. */ children?: ReactNode; /** The text is also a control's description, which assistive technology reads with the * control, so the ? is hidden from it and skipped by Tab rather than offering the text twice. * Text with a link keeps the ? reachable, as the only way to the link from the keyboard. */ describesControl?: boolean | undefined; /** Opens it from outside as well as on hover and press, such as while the described control * has keyboard focus. Pair it with `onOpenChange`. */ open?: boolean | undefined; onOpenChange?: ((open: boolean) => void) | undefined; /** Stays on `side` rather than flipping where it doesn't fit, as while the control it * describes is typed in, which a flipped tip would cover. */ keepSide?: boolean | undefined; /** Placed against this element rather than the ?, such as beside the control it describes. */ anchor?: Element | null | undefined; } /** Extra detail behind an info trigger. A popover that also opens on hover, so * touch and screen reader users can reach it and its links. */ export declare function InfoTip({ text, side, className, children, describesControl, open, onOpenChange, keepSide, anchor, }: InfoTipProps): import("react").JSX.Element | null; export {};