import { ReactNode } from 'react'; import { NoticeType } from '../const/types.cjs'; import { IconType } from '../icon/index.cjs'; export interface NoticeOptions { type?: NoticeType; title?: ReactNode; content?: ReactNode; duration?: number; icon?: IconType[]; color?: string; onClose?: () => void; grouping?: string; } 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;