import React from "react"; export interface DialogCustomOptions { component: React.ComponentType; width?: number | string; maskClosable?: boolean; title?: string; showIcon?: boolean; showClose?: boolean; icon?: any; maskBg?: string; props?: Record; onNext?: (value?: any) => void; familyName?: string; style?: React.CSSProperties; } type DialogState = { visible: boolean; options: DialogCustomOptions | null; resolve?: (value: any) => void; reject?: (reason?: any) => void; }; type DialogStateMap = Map; export declare function openDialogCustom(options: DialogCustomOptions): Promise; export declare const DialogCustomStaticMethods: { /** * 打开弹窗 */ open: (component: React.ComponentType, options?: Omit) => Promise; /** * 打开指定family的弹窗 */ openWithFamily: (familyName: string, component: React.ComponentType, options?: Omit) => Promise; /** * 关闭指定family的弹窗 */ close: (familyName?: string) => void; /** * 关闭所有弹窗 */ closeAll: () => void; /** * 获取所有弹窗状态 */ getStates: () => DialogStateMap; /** * 检查是否有弹窗打开 */ hasOpenDialog: (familyName?: string) => boolean; }; export declare function useDialogStates(): DialogStateMap; export declare function useDialogSelector(selector: (states: DialogStateMap) => T): T; export declare function useHasOpenDialog(): boolean; export declare function useFamilyVisible(familyName: string): boolean; export declare function getDialogFrozenSnapshot(): ReadonlyMap>; export declare function subscribeHasOpen(listener: (hasOpen: boolean) => void): () => void; export declare const useDialogCustom: typeof openDialogCustom; export default openDialogCustom;