import * as React from 'react';
import { DialogProps } from './Dialog';
import { EmotionProps } from './Emotion';
import { ConfirmProps } from './Confirm';
declare type OmitOkType<T> = Pick<T, keyof Omit<T, 'onOk'>> & {
    onOk?: (e: React.SyntheticEvent, onClose: () => void, val: string, setLoading: (loading: boolean) => void) => void;
};
export declare type ViewProps = OmitOkType<DialogProps> | OmitOkType<EmotionProps> | OmitOkType<ConfirmProps>;
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;
