UNPKG

835 BTypeScriptView Raw
1import React from 'react';
2import type { ArgsProps, ConfigOptions, MessageType, TypeOpen } from './interface';
3import PurePanel from './PurePanel';
4import useMessage from './useMessage';
5export type { ArgsProps };
6declare function setMessageGlobalConfig(config: ConfigOptions): void;
7interface BaseMethods {
8 open: (config: ArgsProps) => MessageType;
9 destroy: (key?: React.Key) => void;
10 config: typeof setMessageGlobalConfig;
11 useMessage: typeof useMessage;
12 /** @private Internal Component. Do not use in your production. */
13 _InternalPanelDoNotUseOrYouWillBeFired: typeof PurePanel;
14}
15interface MessageMethods {
16 info: TypeOpen;
17 success: TypeOpen;
18 error: TypeOpen;
19 warning: TypeOpen;
20 loading: TypeOpen;
21}
22declare const staticMethods: MessageMethods & BaseMethods;
23export default staticMethods;