import { t as DialogStore } from "./dialog-store-DmFJrY2V.js";
import { n as HeadingOptions } from "./heading-hnz56WnL.js";
import { Props } from "@ariakit/react-utils";
import { ElementType } from "react";
//#region src/dialog/dialog-heading.d.ts
declare const TagName = "h1";
type TagName = typeof TagName;
/**
 * Returns props to create a `DialogHeading` component. This hook must be used
 * in a component that's wrapped with `Dialog` so the `aria-labelledby` 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 = useDialogHeading();
 * <Role {...props}>Heading</Role>
 * ```
 */
declare const useDialogHeading: import("@ariakit/react-utils").Hook<"h1", DialogHeadingOptions<"h1">>;
/**
 * Renders a heading in a dialog. This component must be wrapped with
 * [`Dialog`](https://ariakit.com/reference/dialog) so the `aria-labelledby`
 * 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)}>
 *   <DialogHeading>Heading</DialogHeading>
 * </Dialog>
 * ```
 */
declare const DialogHeading: (props: DialogHeadingProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
interface DialogHeadingOptions<T extends ElementType = TagName> extends HeadingOptions<T> {
  /**
   * Object returned by the
   * [`useDialogStore`](https://ariakit.com/reference/use-dialog-store) hook.
   *
   * **Note**: This prop has no effect on this component. The heading 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-labelledby` prop to be set on the dialog element.
   */
  store?: DialogStore;
}
type DialogHeadingProps<T extends ElementType = TagName> = Props<T, DialogHeadingOptions<T>>;
//#endregion
export { useDialogHeading as i, DialogHeadingOptions as n, DialogHeadingProps as r, DialogHeading as t };
//# sourceMappingURL=dialog-heading-CgSBT9Ri.d.ts.map