import { EaOverlay } from '../../../common/ea-overlay'; declare const BOX_TYPES: import('../../../types').EnumConstructor; declare const MESSAGE_VARIANT_TYPES: import('../../../types').EnumConstructor; declare const BUTTON_SIZES: import('../../../types').EnumConstructor; type BoxType = (typeof BOX_TYPES)[number]; type MessageVariantType = (typeof MESSAGE_VARIANT_TYPES)[number]; type ButtonSize = (typeof BUTTON_SIZES)[number]; /** * @summary 模态消息框组件,用于消息提示(alert)、确认(confirm)和提交(prompt),支持拖拽、HTML 内容和关闭拦截。 * @status stable * @since 3.0 * * @dependency ea-overlay * @dependency ea-icon * @dependency ea-input * @dependency ea-button * * @slot default - 默认插槽。 * * @event ea-confirm - 点击确认按钮时触发。 * @event ea-cancel - 点击取消按钮时触发。 * @event ea-message-close - 当 distinguishCancelAndClose 为 true 时,用户点击关闭按钮触发。 * * @csspart container - 容器元素。 * @csspart header - 头部区域。 * @csspart title-wrap - 标题包裹元素。 * @csspart type-icon - 类型图标元素。 * @csspart close-icon - 关闭图标元素。 * @csspart content - 内容区域。 * @csspart description - 描述内容元素。 * @csspart input - 输入框元素。 * @csspart footer - 底部区域。 * @csspart confirm-button - 确认按钮元素。 * @csspart cancel-button - 取消按钮元素。 * * @cssproperty --ea-message-box-padding - 组件内边距。 * @cssproperty --ea-message-box-border-radius - 组件圆角。 * @cssproperty --ea-message-box-box-shadow - 组件阴影。 * @cssproperty --ea-message-box-title-font-size - 标题字号。 * @cssproperty --ea-message-box-close-icon-size - 关闭图标字号。 * @cssproperty --ea-message-box-content-font-size - 内容字号。 * @cssproperty --ea-message-box-title-color - 标题颜色。 * @cssproperty --ea-message-box-close-icon-color - 关闭图标颜色。 * @cssproperty --ea-message-box-content-color - 内容颜色。 * @cssproperty --ea-message-box-section-gap - 区域间距。 */ export declare class EaMessageBoxElement extends EaOverlay { private static _idCounter; private _header; private _title; private _typeIcon; private _closeIcon; private _content; private _description; private _input; private _form; private _cancelButton; private _confirmButton; boxType: BoxType; heading: string; message: string; variant: MessageVariantType | ""; icon: string; closeIcon: string; showClose: boolean; showCancelButton: boolean; showConfirmButton: boolean; confirmButtonText: string; cancelButtonText: string; center: boolean; roundButton: boolean; buttonSize: ButtonSize; showInput: boolean; inputPlaceholder: string; inputType: string; inputValue: string; inputPattern: string; inputErrorMessage: string; movable: boolean; inputValidator: ((value: string) => boolean | string | Promise) | null; dangerouslyUseHTMLString: boolean; confirmButtonLoading: boolean; distinguishCancelAndClose: boolean; /** 同步输入框属性 */ private _syncInputProps; /** 执行输入验证 */ private _validateInput; updateContainerClasslist(): string; html(): string; /** 根据 distinguishCancelAndClose 设置派发关闭类事件 */ private _dispatchCloseEvent; private _handleFormSubmit; private _handleCancelClick; private _handleCloseIconClick; private _handleDragStart; protected _handleKeyDown(e: KeyboardEvent): void; protected _handleMaskClick(e: Event): void; $mount(): void; $mounted(): void; /** 更新 aria-labelledby 指向标题元素 */ private _updateAriaLabelledBy; /** 更新 aria-describedby 指向描述内容 */ private _updateAriaDescribedBy; $beforeUnmount(): void; } export {}; //# sourceMappingURL=index.d.ts.map