import { HovercardOptions } from "../hovercard/hovercard.js";
import { TooltipStore } from "./tooltip-store.js";
import { Props } from "@ariakit/react-utils";
import { ElementType } from "react";
//#region src/tooltip/tooltip.d.ts
declare const TagName = "div";
type TagName = typeof TagName;
/**
 * Returns props to create a `Tooltip` component.
 * @see https://ariakit.com/components/tooltip
 * @example
 * ```jsx
 * const store = useToolTipStore();
 * const props = useTooltip({ store });
 * <TooltipAnchor store={store}>Anchor</TooltipAnchor>
 * <Role {...props}>Tooltip</Role>
 * ```
 */
declare const useTooltip: import("@ariakit/react-utils").Hook<"div", TooltipOptions<"div">>;
/**
 * Renders a tooltip element that visually describes a
 * [`TooltipAnchor`](https://ariakit.com/reference/tooltip-anchor) when it
 * receives focus or is hovered.
 *
 * 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 {3}
 * <TooltipProvider>
 *   <TooltipAnchor>Anchor</TooltipAnchor>
 *   <Tooltip>Tooltip</Tooltip>
 * </TooltipProvider>
 * ```
 */
declare const Tooltip: (props: TooltipProps<"div">) => import("react").JSX.Element | null;
interface TooltipOptions<T extends ElementType = TagName> extends HovercardOptions<T> {
  /**
   * 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;
  /**
   * @default true
   */
  portal?: HovercardOptions<T>["portal"];
  /**
   * @default 8
   */
  gutter?: HovercardOptions<T>["gutter"];
}
type TooltipProps<T extends ElementType = TagName> = Props<T, TooltipOptions<T>>;
//#endregion
export { Tooltip, TooltipOptions, TooltipProps, useTooltip };
//# sourceMappingURL=tooltip.d.ts.map