import type { BooleanOrCallback } from "@ariakit/core/utils/types"; import type { ElementType, MouseEvent as ReactMouseEvent } from "react"; import type { FocusableOptions } from "../focusable/focusable.tsx"; import type { Props } from "../utils/types.ts"; import type { HovercardStore } from "./hovercard-store.ts"; declare const TagName = "a"; type TagName = typeof TagName; /** * Returns props to create a `HovercardAnchor` component. * @see https://ariakit.com/components/hovercard * @example * ```jsx * const store = useHovercardStore(); * const props = useHovercardAnchor({ store }); * }>@username * Details * ``` */ export declare const useHovercardAnchor: import("../utils/types.ts").Hook<"a", HovercardAnchorOptions<"a">>; /** * Renders an anchor element that will open a * [`Hovercard`](https://ariakit.com/reference/hovercard) popup on hover. * @see https://ariakit.com/components/hovercard * @example * ```jsx {2} * * @username * Details * * ``` */ export declare const HovercardAnchor: (props: HovercardAnchorProps) => import("react").ReactElement>; export interface HovercardAnchorOptions extends FocusableOptions { /** * Object returned by the * [`useHovercardStore`](https://ariakit.com/reference/use-hovercard-store) * hook. If not provided, the closest * [`HovercardProvider`](https://ariakit.com/reference/hovercard-provider) * component's context will be used. */ store?: HovercardStore; /** * Shows the content element based on the user's _hover intent_ over the * anchor element. This behavior purposely ignores mobile touch and * unintentional mouse enter events, like those that happen during scrolling. * * Live examples: * - [Navigation Menubar](https://ariakit.com/examples/menubar-navigation) * - [Sliding Menu](https://ariakit.com/examples/menu-slide) * @default true */ showOnHover?: BooleanOrCallback>; } export type HovercardAnchorProps = Props>; export {};