import * as React from 'react'; import { DialogProps } from './Dialog'; import { EmotionProps } from './Emotion'; import { ConfirmProps } from './Confirm'; declare type OmitOkType = Pick> & { onOk?: (e: React.SyntheticEvent, onClose: () => void, val: string, setLoading: (loading: boolean) => void) => void; }; export declare type ViewProps = OmitOkType | OmitOkType | OmitOkType; declare const dialogApi: { open: (config: ViewProps, context?: ((onClose: () => void) => React.ReactNode) | undefined) => void; info: (config: ViewProps, context?: ((onClose: () => void) => React.ReactNode) | undefined) => void; error: (config: ViewProps, context?: ((onClose: () => void) => React.ReactNode) | undefined) => void; warning: (config: ViewProps, context?: ((onClose: () => void) => React.ReactNode) | undefined) => void; success: (config: ViewProps, context?: ((onClose: () => void) => React.ReactNode) | undefined) => void; normal: (config: ViewProps, context?: ((onClose: () => void) => React.ReactNode) | undefined) => void; confirm: (config: ViewProps, context?: ((onClose: () => void) => React.ReactNode) | undefined) => void; }; export default dialogApi;