import type { ComponentType, PropsWithChildren } from 'react'; interface DialogItem { isOpen: boolean; data: any; } type DialogStates = Record; type ComponentIdentifier = string | ComponentType; export interface DialogProps { dialogData: T; onCloseDialog: () => void; onOpenDialog: () => void; } interface DialogContextType { openDialog: (identifier: ComponentIdentifier, data?: T) => void; closeDialog: (identifier: ComponentIdentifier) => void; } interface DialogDataContextType { dialogStates: DialogStates; getDialogData: (identifier: ComponentIdentifier) => T | null; isDialogOpen: (identifier: ComponentIdentifier) => boolean; getDialog: (identifier: ComponentIdentifier) => DialogItem; } export declare function DialogProvider({ children }: Required): import("react/jsx-runtime").JSX.Element; export declare function useDialog(): DialogContextType; export declare function useDialogData(): DialogDataContextType; type WrapperParameters

= Omit>; interface WithDialogOptions { dialogName?: string; /** force re-render the dialog */ force?: boolean; } export declare function withDialog

(WrappedComponent: React.ComponentType

, options?: WithDialogOptions): (props: WrapperParameters

) => import("react/jsx-runtime").JSX.Element | null; export {}; //# sourceMappingURL=DialogManager.d.ts.map