import type { ElementType } from "react"; import type { HovercardAnchorOptions } from "../hovercard/hovercard-anchor.tsx"; import type { Props } from "../utils/types.ts"; import type { TooltipStore } from "./tooltip-store.ts"; declare const TagName = "div"; type TagName = typeof TagName; /** * Returns props to create a `TooltipAnchor` component. * @see https://ariakit.com/components/tooltip * @example * ```jsx * const store = useToolTipStore(); * const props = useTooltipAnchor({ store }); * Anchor * Tooltip * ``` */ export declare const useTooltipAnchor: import("../utils/types.ts").Hook<"div", TooltipAnchorOptions<"div">>; /** * Renders a reference element for a * [`Tooltip`](https://ariakit.com/reference/tooltip), which is triggered by * focusing or hovering over the anchor. * * The tooltip is strictly for visual purposes. It's your responsibility to * ensure the anchor element has an accessible name. See [Tooltip anchors must * have accessible * names](https://ariakit.com/components/tooltip#tooltip-anchors-must-have-accessible-names) * @see https://ariakit.com/components/tooltip * @example * ```jsx {2} * * Anchor * Tooltip * * ``` */ export declare const TooltipAnchor: (props: TooltipAnchorProps) => import("react").ReactElement>; export interface TooltipAnchorOptions extends HovercardAnchorOptions { /** * Object returned by the * [`useTooltipStore`](https://ariakit.com/reference/use-tooltip-store) hook. * If not provided, the closest * [`TooltipProvider`](https://ariakit.com/reference/tooltip-provider) * component's context will be used. */ store?: TooltipStore; } export type TooltipAnchorProps = Props>; export {};