import type { ElementType } from "react"; import type { DisclosureOptions } from "../disclosure/disclosure.tsx"; import type { Props } from "../utils/types.ts"; import type { DialogStore } from "./dialog-store.ts"; declare const TagName = "button"; type TagName = typeof TagName; /** * Returns props to create a `DialogDisclosure` component. * @see https://ariakit.com/components/dialog * @example * ```jsx * const store = useDialogStore(); * const props = useDialogDisclosure({ store }); * Disclosure * Content * ``` */ export declare const useDialogDisclosure: import("../utils/types.ts").Hook<"button", DialogDisclosureOptions<"button">>; /** * Renders a button that toggles the visibility of a * [`Dialog`](https://ariakit.com/reference/dialog) component when clicked. * @see https://ariakit.com/components/dialog * @example * ```jsx {2} * * Disclosure * Content * * ``` */ export declare const DialogDisclosure: (props: DialogDisclosureProps) => import("react").ReactElement>; export interface DialogDisclosureOptions extends DisclosureOptions { /** * Object returned by the * [`useDialogStore`](https://ariakit.com/reference/use-dialog-store) hook. If * not provided, the closest * [`DialogProvider`](https://ariakit.com/reference/dialog-provider) * component's context will be used. */ store?: DialogStore; } export type DialogDisclosureProps = Props>; export {};