1 | import * as React from 'react';
|
2 | declare function _distroy(): void;
|
3 | declare type NoticeFunction = {
|
4 | (content: React.ReactNode, onClose?: Function): Function;
|
5 | (content: React.ReactNode, duration: number, onClose?: Function): Function;
|
6 | };
|
7 | declare class Message {
|
8 | static notice: NoticeFunction;
|
9 | static success: NoticeFunction;
|
10 | static info: NoticeFunction;
|
11 | static warn: NoticeFunction;
|
12 | static error: NoticeFunction;
|
13 | static config: ({ container, duration }: Message.Option) => void;
|
14 | static readonly distroy: typeof _distroy;
|
15 | }
|
16 | declare namespace Message {
|
17 | interface Option {
|
18 | container?: Element;
|
19 | duration?: number;
|
20 | }
|
21 | }
|
22 | export default Message;
|