import type { BasicType } from '../../_utils'; import type { MessageClose } from '../../message'; import type { RendererNode, RendererElement, VNode, PropType, ExtractPropTypes } from 'vue'; import type { NotificationPlacement } from './interface'; import type { VmType, VmIcon } from '../../_interface'; export declare const Props: { /** 通知标题 */ readonly title: { readonly type: PropType>; readonly default: () => null; }; /** 通知文本 */ readonly message: { readonly type: PropType>; readonly default: () => null; }; /** * 消息类型 * * @values default primary success danger warning * @default null */ readonly type: BasicType, VmType | null>; /** 是否可关闭 */ readonly close: BasicType; /** 显示时间,单位为毫秒。 设为 0 则不会自动关闭 */ readonly duration: BasicType; /** 是否为圆角类型 */ readonly round: BasicType; /** 是否显示按钮 */ readonly showIcon: BasicType; /** 自定义前缀 icon */ readonly icon: BasicType, null>; /** 自定义字体颜色 */ readonly color: BasicType, string | null>; /** 自定义背景色 */ readonly background: BasicType, string | null>; /** 偏移距离 */ readonly offset: BasicType; /** * 弹出位置 * * @values top-left top-right bottom-left bottom-right * @default top-right */ readonly placement: BasicType, NotificationPlacement | null>; /** 层级 */ readonly zIndex: BasicType; /** 自定义关闭按钮 */ readonly closeBtn: { readonly type: PropType>; readonly default: () => null; }; /** 关闭之后回调 */ readonly onClose: BasicType, null>; }; /** notification 组件 props 类型 */ export type NotificationProps = ExtractPropTypes;