UNPKG

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