import { message, notification } from "antd"; import React, { ReactNode } from "react"; import { ToastProps } from "./message/Toast"; /** * 显示从服务端的返回的操作信息。 * @name 消息组件 * @groupName 列表 */ export default class XMessage extends React.Component { static ComponentName: string; static message: typeof message; static notification: typeof notification; static ShowToast(content: ReactNode | ToastProps): void; static HideToast(): void; static GetMessagePostion(): any; static ShowInfo(m: any, duration?: number, onClose?: any, message?: string): void; static ShowError(m: any, duration?: number, onClose?: any, message?: string): void; static ShowWarn(m: any, duration?: number, onClose?: any, message?: string): void; static ShowAlert(m: any, duration?: any, onClose?: any): void; static ShowConfirm(m: any, duration?: any, onClose?: any): void; static ShowNotification(m: any, config?: object): void; static ShowLoading(content: any, duration?: number): void; render(): React.JSX.Element; }