import { n as ButtonOptions } from "./button-Bh6AYzok.js";
import { t as DialogStore } from "./dialog-store-DmFJrY2V.js";
import { Props } from "@ariakit/react-utils";
import { ElementType } from "react";
//#region src/dialog/dialog-dismiss.d.ts
declare const TagName = "button";
type TagName = typeof TagName;
/**
 * Returns props to create a `DialogDismiss` component.
 * @see https://ariakit.com/components/dialog
 * @example
 * ```jsx
 * const store = useDialogStore();
 * const props = useDialogDismiss({ store });
 * <Dialog store={store}>
 *   <Role {...props} />
 * </Dialog>
 * ```
 */
declare const useDialogDismiss: import("@ariakit/react-utils").Hook<"button", DialogDismissOptions<"button">>;
/**
 * Renders a button that hides a
 * [`Dialog`](https://ariakit.com/reference/dialog) when clicked.
 * @see https://ariakit.com/components/dialog
 * @example
 * ```jsx {4}
 * const [open, setOpen] = useState(false);
 *
 * <Dialog open={open} onClose={() => setOpen(false)}>
 *   <DialogDismiss />
 * </Dialog>
 * ```
 */
declare const DialogDismiss: (props: DialogDismissProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
interface DialogDismissOptions<T extends ElementType = TagName> extends ButtonOptions<T> {
  /**
   * Object returned by the
   * [`useDialogStore`](https://ariakit.com/reference/use-dialog-store) hook. If
   * not provided, the closest [`Dialog`](https://ariakit.com/reference/dialog)
   * component's context will be used.
   */
  store?: DialogStore;
}
type DialogDismissProps<T extends ElementType = TagName> = Props<T, DialogDismissOptions<T>>;
//#endregion
export { useDialogDismiss as i, DialogDismissOptions as n, DialogDismissProps as r, DialogDismiss as t };
//# sourceMappingURL=dialog-dismiss-MyOpg-jy.d.ts.map