import type { JSXElement } from '../basic-config'; /** Api * @since 2.7.0 */ export interface NotificationProps { /** 通知类型 */ type: keyof typeof NotificationType; /** 通知内容 */ children: JSXElement; /** 图标 */ icon?: JSXElement; /** * 是否显示关闭按钮 * @default false */ close?: boolean; /** * 显示通知时间, 到时自动关闭; 当 duration < 1 时不自动关闭 * @default 3000 */ duration?: boolean; } /** 通知类型 */ export declare enum NotificationType { /** 详细 */ info = "info", /** 成功 */ success = "success", /** 错误 */ error = "error", /** 警告 */ warning = "warning", /** 主要 */ primary = "primary" } interface NotificationQueQue extends NotificationProps { uniqueId: string; closeing?: boolean; } declare const queque: { list: import("solid-js").Accessor; add: (item: NotificationQueQue) => void; remove: (uniqueId: string) => void; clean: () => void; update: (uniqueId: string, item: NotificationProps) => void; }; export default queque;