import type { ElementType } from "react"; import type { DialogDismissOptions } from "../dialog/dialog-dismiss.tsx"; import type { Props } from "../utils/types.ts"; import type { PopoverStore } from "./popover-store.ts"; declare const TagName = "button"; type TagName = typeof TagName; /** * Returns props to create a `PopoverDismiss` component. * @see https://ariakit.com/components/popover * @example * ```jsx * const store = usePopoverStore(); * const props = usePopoverDismiss({ store }); * * * * ``` */ export declare const usePopoverDismiss: import("../utils/types.ts").Hook<"button", PopoverDismissOptions<"button">>; /** * Renders a button that hides a * [`Popover`](https://ariakit.com/reference/popover) component when clicked. * @see https://ariakit.com/components/popover * @example * ```jsx {3} * * * * * * ``` */ export declare const PopoverDismiss: (props: PopoverDismissProps) => import("react").ReactElement>; export interface PopoverDismissOptions extends DialogDismissOptions { /** * Object returned by the * [`usePopoverStore`](https://ariakit.com/reference/use-popover-store) hook. * If not provided, the closest * [`Popover`](https://ariakit.com/reference/popover) or * [`PopoverProvider`](https://ariakit.com/reference/popover-provider) * components' context will be used. */ store?: PopoverStore; } export type PopoverDismissProps = Props>; export {};