import type { ArgsProps } from 'antd/es/notification'; import type { GlobalConfigProps, NotificationConfig } from 'antd/es/notification/interface'; import React from 'react'; import type { Theme } from '../ConfigProviderExt/context'; interface ArgsPropsExt extends ArgsProps { theme?: 'default' | 'hermes' | 'zeus'; needBtn?: boolean; } declare const notificationExt: { success: (config: ArgsPropsExt) => void; error: (config: ArgsPropsExt) => void; info: (config: ArgsPropsExt) => void; warning: (config: ArgsPropsExt) => void; open: (config: ArgsPropsExt) => void; destroy: (k?: string) => void; useNotification: (notificationConfig?: NotificationConfig) => readonly [{ success: (config: ArgsPropsExt) => void; error: (config: ArgsPropsExt) => void; info: (config: ArgsPropsExt) => void; warning: (config: ArgsPropsExt) => void; open: (config: ArgsPropsExt) => void; destroy: (k?: React.Key) => void; }, React.ReactElement>]; config: (config: GlobalConfigProps) => void; /** * @deprecated use ConfigProviderExt.config.themeExt instead */ setTheme: (p: Theme) => void; }; export default notificationExt;