import type { BasicType } from '../../_utils/props/interface'; import type { RendererNode, RendererElement, VNode, PropType, ExtractPropTypes } from 'vue'; import type { MessagePlacement } from './interface'; import type { FightingType, FightingIcon } from '../../_interface'; export declare const Props: { /** 唯一值 */ readonly id: BasicType, string | null>; /** 消息文本 */ readonly message: { readonly type: PropType>; readonly default: () => null; readonly required: true; }; /** * 消息类型 * * @values default primary success danger warning * @default default */ readonly type: BasicType, FightingType | null>; /** 是否可关闭 */ readonly close: BasicType; /** 显示时间,单位为毫秒。 设为 0 则不会自动关闭 */ readonly duration: BasicType; /** 是否为圆角类型 */ readonly round: BasicType; /** 消息 icon */ readonly icon: BasicType, null>; /** 字体颜色 */ readonly color: BasicType, string | null>; /** 自定义背景色 */ readonly background: BasicType, string | null>; /** 偏移距离 */ readonly offset: BasicType; /** * 位置 * * @values top top-left top-right bottom bottom-left bottom-right * @default top */ readonly placement: BasicType, MessagePlacement | null>; /** 层级 */ readonly zIndex: BasicType; /** 关闭按钮 */ readonly closeBtn: { readonly type: PropType>; readonly default: () => null; }; /** 关闭回调 */ readonly onClose: { readonly type: FunctionConstructor; readonly default: () => null; }; }; /** message 组件 props 类型 */ export type MessageProps = ExtractPropTypes;