import * as _angular_core from '@angular/core'; import { OnInit, Signal } from '@angular/core'; import * as i1 from '@angular/common'; type ThyBadgeSize = 'md' | 'sm' | 'lg'; type ThyBadgeColor = 'default' | 'primary' | 'danger' | 'warning' | 'success'; /** * 徽标组件,支持组件`thy-badge`和`thyBadge`指令两种使用方式 * @name thy-badge,[thyBadge] */ declare class ThyBadge implements OnInit { private elementRef; private nativeElement; readonly displayContent: Signal; readonly badgeClassName: Signal; protected isWrapper: boolean; readonly isShowBadge: Signal; private readonly value; protected readonly textColor: Signal; protected readonly backgroundColor: Signal; constructor(); /** * 徽标颜色 * @type default | primary | danger | warning | success * @default danger */ readonly thyColor: _angular_core.InputSignal; /** * 徽标类型(已废弃,将在 v23 彻底删除),请使用 thyColor * @deprecated please use thyColor, will be removed in v23 * @type default | primary | danger | warning | success * @default danger */ readonly thyType: _angular_core.InputSignal; readonly color: Signal; /** * 徽标内容数字 * @type number */ readonly thyCount: _angular_core.InputSignalWithTransform; /** * 徽标内容文本 * @type string */ readonly thyContent: _angular_core.InputSignal; /** * 徽标显示的最大值, 与 thyCount 一起使用,thyCount 超过了 thyMaxCount 设置的值时,徽标内容为 thyMaxCount+ * @type number */ readonly thyMaxCount: _angular_core.InputSignalWithTransform; /** * 徽标显示的大小 * @type md | sm | lg */ readonly thySize: _angular_core.InputSignalWithTransform; /** * thyCount 为 0 时,强制显示数字 0,默认不显示 */ readonly thyKeepShow: _angular_core.InputSignalWithTransform; /** * 设置徽标字体的颜色,支持内置颜色和自定义颜色 'primary' | '#87d068' | ... * @type string */ readonly thyTextColor: _angular_core.InputSignal; /** * 设置徽标的背景颜色,支持内置颜色和自定义颜色 'primary' | '#87d068' | ... * @type string */ readonly thyBackgroundColor: _angular_core.InputSignal; ngOnInit(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class ThyBadgeModule { constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThyBadge, ThyBadgeModule }; export type { ThyBadgeColor, ThyBadgeSize };