import * as _angular_core from '@angular/core'; import { TemplateRef } from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from 'ngx-tethys/icon'; type ThyAlertColor = 'success' | 'warning' | 'danger' | 'info' | 'primary'; type ThyAlertAppearance = 'fill' | 'bordered' | 'naked'; /** @deprecated use ThyAlertAppearance, will be removed in v23 */ type ThyAlertTheme = ThyAlertAppearance; /** @deprecated use ThyAlertColor, will be removed in v23 */ type ThyAlertType = ThyAlertColor | 'primary-weak' | 'success-weak' | 'warning-weak' | 'danger-weak'; /** * 警告提示,展现需要关注的信息 * @name thy-alert * @order 10 */ declare class ThyAlert { protected hidden: boolean; private hostRenderer; messageIsTemplate: _angular_core.Signal; /** * 指定警告提示的颜色 * @type success | warning | danger | info | primary * @default info */ readonly thyColor: _angular_core.InputSignal; /** * 指定警告提示的外观 * @type fill | bordered | naked * @default fill */ readonly thyAppearance: _angular_core.InputSignal; /** * 指定警告提示的类型(已废弃,将在 v23 彻底移除),请使用 thyColor * @deprecated please use thyColor, will be removed in v23 * @type success | warning | danger | info | primary * @default info */ readonly thyType: _angular_core.InputSignal; /** * 指定警告提示的主题(已废弃,将在 v23 彻底移除),请使用 thyAppearance * @deprecated please use thyAppearance, will be removed in v23 * @type fill | bordered | naked * @default fill */ readonly thyTheme: _angular_core.InputSignal; readonly color: _angular_core.Signal<"primary" | "info" | "primary-weak" | "success-weak" | "warning-weak" | "danger-weak" | "success" | "warning" | "danger">; readonly appearance: _angular_core.Signal; /** * 显示警告提示的内容 */ thyMessage: _angular_core.InputSignal | undefined>; /** * 显示自定义图标,可传 true/false 控制是否显示图标,或者传字符串去指定图标名称 */ thyIcon: _angular_core.InputSignal; icon: _angular_core.Signal; /** * 是否显示关闭警告框按钮,默认不显示 * @default false */ thyCloseable: _angular_core.InputSignalWithTransform; /** * 警告框自定义操作 * @type TemplateRef */ alertOperation: _angular_core.Signal | undefined>; constructor(); closeAlert(): void; private updateClass; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * 操作按钮的样式指令,可为警告内容添加自定义操作按钮样式 * @name thyAlertActionItem * @order 20 */ declare class ThyAlertActionItemDirective { class: boolean; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class ThyAlertModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThyAlert, ThyAlertActionItemDirective, ThyAlertModule }; export type { ThyAlertAppearance, ThyAlertColor, ThyAlertTheme, ThyAlertType };