import { t as DialogStore } from "./dialog-store-DmFJrY2V.js";
import { Options, Props } from "@ariakit/react-utils";
import { ElementType } from "react";
//#region src/dialog/dialog-description.d.ts
declare const TagName = "p";
type TagName = typeof TagName;
/**
 * Returns props to create a `DialogDescription` component. This hook must be
 * used in a component that's wrapped with `Dialog` so the `aria-describedby`
 * prop is properly set on the dialog element.
 * @see https://ariakit.com/components/dialog
 * @example
 * ```jsx
 * // This component must be wrapped with Dialog
 * const props = useDialogDescription();
 * <Role {...props}>Description</Role>
 * ```
 */
declare const useDialogDescription: import("@ariakit/react-utils").Hook<"p", DialogDescriptionOptions<"p">>;
/**
 * Renders a description in a dialog. This component must be wrapped with
 * [`Dialog`](https://ariakit.com/reference/dialog) so the `aria-describedby`
 * prop is properly set on the dialog element.
 * @see https://ariakit.com/components/dialog
 * @example
 * ```jsx {4}
 * const [open, setOpen] = useState(false);
 *
 * <Dialog open={open} onClose={() => setOpen(false)}>
 *   <DialogDescription>Description</DialogDescription>
 * </Dialog>
 * ```
 */
declare const DialogDescription: (props: DialogDescriptionProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
interface DialogDescriptionOptions<_T extends ElementType = TagName> extends Options {
  /**
   * Object returned by the
   * [`useDialogStore`](https://ariakit.com/reference/use-dialog-store) hook.
   *
   * **Note**: This prop has no effect on this component. The description is
   * linked to the closest [`Dialog`](https://ariakit.com/reference/dialog)
   * component through React context, so it must be rendered inside the dialog
   * for the `aria-describedby` prop to be set on the dialog element.
   */
  store?: DialogStore;
}
type DialogDescriptionProps<T extends ElementType = TagName> = Props<T, DialogDescriptionOptions<T>>;
//#endregion
export { useDialogDescription as i, DialogDescriptionOptions as n, DialogDescriptionProps as r, DialogDescription as t };
//# sourceMappingURL=dialog-description-CVDWJ4Hn.d.ts.map