import './index.less'; import { ArgsProps, NotificationApi } from 'antd/lib/notification'; import React from 'react'; type ConfigContent = React.ReactNode; type JoinDescription = ConfigContent | ArgsProps; type JoinMessage = ConfigContent; type ConfigOnClose = () => void; type msgType = { message: JoinMessage; description: JoinDescription; onClose?: ConfigOnClose; onOk?: () => void; onCancle?: () => void; }; declare let notification: NotificationApi & { normal: (params: msgType & ArgsProps) => any; info: (params: msgType & ArgsProps) => any; success: (params: msgType & ArgsProps) => any; warning: (params: msgType & ArgsProps) => any; error: (params: msgType & ArgsProps) => any; }; export { notification };