import React from 'react'; import { NotifyProps, NotifyRef } from './type'; import { NotifyBaseProps } from './methods'; export * from './type'; export declare function methodsGenerator

(Comp: React.FC

): { /** * 展示常规通知 * @desc {en} Show regular notification * @param {string | NotifyProps} config * @returns {{ update: (config: NotifyProps) => void; close: () => void }} */ info: (originConfig: string | Pick>, context?: import("../context-provider").GlobalContextParams | undefined) => { update: (newConfig: Pick>) => void; close: () => void; }; /** * 展示成功通知 * @desc {en} Show success notification * @param {string | NotifyProps} config * @returns {{ update: (config: NotifyProps) => void; close: () => void }} */ success: (originConfig: string | Pick>, context?: import("../context-provider").GlobalContextParams | undefined) => { update: (newConfig: Pick>) => void; close: () => void; }; /** * 展示错误的通知 * @desc {en} Show error notification * @param {string | NotifyProps} config * @returns {{ update: (config: NotifyProps) => void; close: () => void }} */ error: (originConfig: string | Pick>, context?: import("../context-provider").GlobalContextParams | undefined) => { update: (newConfig: Pick>) => void; close: () => void; }; /** * 展示警告的通知 * @desc {en} Show warning notification * @param {string | NotifyProps} config * @returns {{ update: (config: NotifyProps) => void; close: () => void }} */ warn: (originConfig: string | Pick>, context?: import("../context-provider").GlobalContextParams | undefined) => { update: (newConfig: Pick>) => void; close: () => void; }; }; declare const _default: React.ForwardRefExoticComponent> & { /** * 展示常规通知 * @desc {en} Show regular notification * @param {string | NotifyProps} config * @returns {{ update: (config: NotifyProps) => void; close: () => void }} */ info: (originConfig: string | Pick>, "ref" | "className" | "style" | "duration" | "content" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => { update: (newConfig: Pick>, "ref" | "className" | "style" | "duration" | "content" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose">) => void; close: () => void; }; /** * 展示成功通知 * @desc {en} Show success notification * @param {string | NotifyProps} config * @returns {{ update: (config: NotifyProps) => void; close: () => void }} */ success: (originConfig: string | Pick>, "ref" | "className" | "style" | "duration" | "content" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => { update: (newConfig: Pick>, "ref" | "className" | "style" | "duration" | "content" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose">) => void; close: () => void; }; /** * 展示错误的通知 * @desc {en} Show error notification * @param {string | NotifyProps} config * @returns {{ update: (config: NotifyProps) => void; close: () => void }} */ error: (originConfig: string | Pick>, "ref" | "className" | "style" | "duration" | "content" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => { update: (newConfig: Pick>, "ref" | "className" | "style" | "duration" | "content" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose">) => void; close: () => void; }; /** * 展示警告的通知 * @desc {en} Show warning notification * @param {string | NotifyProps} config * @returns {{ update: (config: NotifyProps) => void; close: () => void }} */ warn: (originConfig: string | Pick>, "ref" | "className" | "style" | "duration" | "content" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose">, context?: import("../context-provider").GlobalContextParams | undefined) => { update: (newConfig: Pick>, "ref" | "className" | "style" | "duration" | "content" | "transitionDuration" | "context" | "key" | "type" | "getContainer" | "onClose">) => void; close: () => void; }; }; /** * 主动操作后显示的反馈信息横条,可采用方法调用或者组件调用的方式 * @en The feedback information bar displayed after active operation can be called by method or by component. * @type 反馈 * @type_en Feedback * @name 消息通知 * @name_en Notify */ export default _default;