import { ReactNode } from 'react'; import { removeToast, ToastOptions, ToastObject } from '@befe/brick-comp-toast'; import { ConfigContextValueOffBoard } from '@befe/brick-core'; /** * @public */ export interface NotificationOptions extends ToastOptions { /** * 类型 */ type?: Exclude; /** * 标题 */ headline: Required; /** * 内容 */ content: Required; /** * @default false */ icon?: ToastOptions['icon']; /** * @default 'top-right' */ placement?: Exclude; /** * @default true */ manualClose?: ToastOptions['manualClose']; } type NoticeMethod = (headline: ReactNode, content: ReactNode, options?: Partial) => ToastObject; export interface NotificationController { (options: NotificationOptions): ToastObject; success: NoticeMethod; info: NoticeMethod; warning: NoticeMethod; error: NoticeMethod; } export declare const removeNotification: typeof removeToast; export declare function createNotification(configContext?: ConfigContextValueOffBoard): NotificationController; export declare const notification: NotificationController; export {};