import { t as PopoverStore } from "../popover-store-BJQhU0yZ.js";
import { Options, Props } from "@ariakit/react-utils";
import { ElementType } from "react";
//#region src/popover/popover-anchor.d.ts
declare const TagName = "div";
type TagName = typeof TagName;
/**
 * Returns props to create a `PopoverAnchor` component.
 * @see https://ariakit.com/components/popover
 * @example
 * ```jsx
 * const store = usePopoverStore();
 * const props = usePopoverAnchor({ store });
 * <Role {...props}>Anchor</Role>
 * <Popover store={store}>Popover</Popover>
 * ```
 */
declare const usePopoverAnchor: import("@ariakit/react-utils").Hook<"div", PopoverAnchorOptions<"div">>;
/**
 * Renders an element that acts as the anchor for the popover. The
 * [`Popover`](https://ariakit.com/reference/popover) component will be
 * positioned in relation to this element.
 * @see https://ariakit.com/components/popover
 * @example
 * ```jsx {2}
 * <PopoverProvider>
 *   <PopoverAnchor>Anchor</PopoverAnchor>
 *   <Popover>Popover</Popover>
 * </PopoverProvider>
 * ```
 */
declare const PopoverAnchor: (props: PopoverAnchorProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
interface PopoverAnchorOptions<_T extends ElementType = TagName> extends Options {
  /**
   * Object returned by the
   * [`usePopoverStore`](https://ariakit.com/reference/use-popover-store) hook.
   * If not provided, the closest
   * [`PopoverProvider`](https://ariakit.com/reference/popover-provider)
   * component's context will be used.
   */
  store?: PopoverStore;
}
type PopoverAnchorProps<T extends ElementType = TagName> = Props<T, PopoverAnchorOptions<T>>;
//#endregion
export { PopoverAnchor, PopoverAnchorOptions, PopoverAnchorProps, usePopoverAnchor };
//# sourceMappingURL=popover-anchor.d.ts.map