import { VNode } from 'vue'; import { NoticeType } from '../const/types'; import { IconType } from '../icon'; export interface NoticeOptions { type?: NoticeType; title?: string; content?: string | VNode; duration?: number; icon?: IconType[]; color?: string; onClose?: () => void; } export interface NoticeApi { name: "notice"; info(options: NoticeOptions): void; success(options: NoticeOptions): void; warning(options: NoticeOptions): void; error(options: NoticeOptions): void; open(options: NoticeOptions): void; destroy(): void; } declare const notice: NoticeApi; export default notice;