
import { DialogContainer } from "./DialogContainer.js";
import { ComponentProps, ComponentType } from "react";
import * as react_jsx_runtime0 from "react/jsx-runtime";

//#region src/components/overlays/Dialog/use-dialog-container.d.ts
/**
 * Generic hook to manage a dialog component.
 *
 * @param Component - A React component that represents the dialog content. It must accept props of type P.
 * @param defaultContainerProps - Default props to pass to the DialogContainer.
 * @returns An object with `open` function to open the dialog with provided props and `rendered` JSX element to include in your component tree.
 */
declare function useDialogContainer<P, E = ComponentProps<typeof DialogContainer>>(Component: ComponentType<P>, defaultContainerProps?: ComponentProps<typeof DialogContainer>): {
  open: (props: P, containerProps?: E | undefined) => void;
  update: (props: P, containerProps?: E | undefined) => void;
  close: () => void;
  readonly rendered: react_jsx_runtime0.JSX.Element | null;
};
//#endregion
export { useDialogContainer };
//# sourceMappingURL=use-dialog-container.d.ts.map