import { t as DialogStore } from "../dialog-store-DmFJrY2V.js";
import { SetState } from "@ariakit/utils";
//#region src/dialog/dialog-context.d.ts
/**
 * Returns the dialog store from the nearest dialog container.
 * @example
 * function Dialog() {
 *   const store = useDialogContext();
 *
 *   if (!store) {
 *     throw new Error("Dialog must be wrapped in DialogProvider");
 *   }
 *
 *   // Use the store...
 * }
 */
declare const useDialogContext: () => DialogStore | undefined;
declare const useDialogScopedContext: (onlyScoped?: boolean) => DialogStore | undefined;
declare const useDialogProviderContext: () => DialogStore | undefined;
declare const DialogContextProvider: (props: import("react").ProviderProps<DialogStore | undefined>) => import("react").JSX.Element;
declare const DialogScopedContextProvider: (props: import("react").ProviderProps<DialogStore | undefined>) => import("react").JSX.Element;
declare const DialogHeadingContext: import("react").Context<SetState<string | undefined> | undefined>;
declare const DialogDescriptionContext: import("react").Context<SetState<string | undefined> | undefined>;
//#endregion
export { DialogContextProvider, DialogDescriptionContext, DialogHeadingContext, DialogScopedContextProvider, useDialogContext, useDialogProviderContext, useDialogScopedContext };
//# sourceMappingURL=dialog-context.d.ts.map