import { Component, VNode, TypeDefs, Children } from 'intact-vue'; export interface NotificationProps { title?: Children; content?: Children; duration?: number; type?: 'info' | 'error' | 'success' | 'warning' | ''; closable?: boolean; icon?: string | VNode; position?: 'topRight' | 'topLeft' | 'bottomRight' | 'bottomLeft' | 'top' | 'bottom'; className?: string; onClick?: (e: MouseEvent) => void; onClose?: () => void; } export declare class Notification extends Component { static template: string | import('intact-vue').Template; static typeDefs: Required>; static defaults: () => Partial; static classNamePrefix: string; /** * 显示通知 * @param props 通知配置对象 * @returns 返回通知的唯一 ID,可用于调用 close 方法关闭通知 */ static notice(props: Partial): number; /** * 关闭指定 ID 的通知 * @param id 通知的唯一 ID,由 notice 方法返回 */ static close(id: number): void; static info(props: Partial): number; static error(props: Partial): number; static success(props: Partial): number; static warning(props: Partial): number; private delayClose; private config; onClick(e: MouseEvent): void; onCloseClick(e: MouseEvent): void; close(): void; }