import { VNode } from 'vue'; export interface NoticeConfig { title: string | VNode; content: string | VNode; duration?: number; appContext?: any; } export interface NoticeConfigType extends NoticeConfig { _id?: number; _timer?: ReturnType; _close: () => void; } export interface NoticeInstance { add: (config: NoticeConfig) => (() => void); }