import type { PointerEventHandler, ReactElement, ReactNode } from 'react'; /** What a hover card opens from: its own anchor, which opens it on hover or focus, * or an element the host watches itself and opens it at, such as a term in * rendered text that one listener on the page serves for every term. */ type HoverCardOpener = { /** The anchor. It receives the trigger's props and ref, so it must pass them to its element. */ children: ReactElement; at?: never; } | { /** The element it opens at while `open`. The host opens and closes it, with its own * delays; Escape and a press outside ask it to close through `onOpenChange`. Null * keeps it closed. */ at: Element | null; children?: never; }; export type HoverCardProps = HoverCardOpener & { /** Mounted only while open, so a card that loads its own data loads on first hover. */ card: ReactNode; /** Opens on first render, for stories and screenshots. */ defaultOpen?: boolean; /** Open from outside, as with `at`. */ open?: boolean | undefined; onOpenChange?: ((open: boolean) => void) | undefined; /** The pointer entered or left the card, so a host opening it with `at` can keep * it open while the reader is over it. */ onPointerEnter?: PointerEventHandler | undefined; onPointerLeave?: PointerEventHandler | undefined; }; /** Detail about its anchor, such as a person's profile, after a short hover or * on focus. A visual enhancement: whatever the card shows must also be * reachable another way, such as the page the anchor links to. The card * stays open while the pointer is over it. */ export declare function HoverCard({ card, children, at, defaultOpen, open, onOpenChange, onPointerEnter, onPointerLeave, }: HoverCardProps): import("react").JSX.Element; export {};