import React, { Component } from 'react'; import { AddEventLReturn } from '../../wui-overlay/src/utils/IUtils'; import { NewInstanceCb, NoticeProps, NotificationProps } from './iNotification'; import { OrNull } from '../../wui-core/src/utils/type'; declare class Notification extends Component { static defaultProps: { animation: string; keyboard: boolean; position: string; show: boolean; clsPrefix: string; transitionName: string; onEscapeKeyUp: () => void; }; static clear: () => void; static handleClose: (key: string) => void; static add: (notice: NoticeProps) => void; static newInstance: (notice: NotificationProps, callback: NewInstanceCb) => void; static success: (notice: NoticeProps) => void; static info: (notice: NoticeProps) => void; static warning: (notice: NoticeProps) => void; static warn: (notice: NoticeProps) => void; static error: (notice: NoticeProps) => void; static open: (notice: NoticeProps) => void; static close: (key: string) => void; static destroy: () => void; _onDocumentKeyupListener: OrNull; constructor(props: NotificationProps); componentDidMount(): void; componentWillUnmount(): void; getTransitionName(): string | undefined; add(notice: NoticeProps): void; remove(key: string | number): void; handleClose(key: string): void; clear(): void; /** * 处理绑定在document上的keyup事件 */ handleDocumentKeyUp: (e: React.KeyboardEvent) => void; render(): JSX.Element; } export default Notification;