/// import { ArgsProps } from 'antd/es/notification'; import { GlobalConfigProps } from 'antd/es/notification/interface'; import useNotification from 'antd/es/notification/useNotification'; export type { ArgsProps }; interface BaseMethods { open: (config: ArgsProps) => void; destroy: (key?: React.Key) => void; config: (config: GlobalConfigProps) => void; useNotification: typeof useNotification; } type StaticFn = (config: ArgsProps) => void; interface NoticeMethods { success: StaticFn; info: StaticFn; warning: StaticFn; error: StaticFn; } type staticMethods = NoticeMethods & BaseMethods; declare const sparkNotification: staticMethods; export default sparkNotification;