import * as _angular_core from '@angular/core'; import { OnInit, Signal } from '@angular/core'; import { ThyTranslate } from 'ngx-tethys/core'; import { ControlValueAccessor } from '@angular/forms'; import { ThyStrengthLocale } from 'ngx-tethys/i18n'; declare enum ThyStrengthEnum { highest = 4, high = 3, average = 2, low = 1 } /** * 程度展示组件 * @name thy-strength * @deprecated will be removed in v23 * @order 10 */ declare class ThyStrength implements OnInit, ControlValueAccessor { translate: ThyTranslate; styleClass: boolean; strength: ThyStrengthEnum; locale: Signal; readonly strengthMap: Signal<{ 4: { level: string; text: string; }; 3: { level: string; text: string; }; 2: { level: string; text: string; }; 1: { level: string; text: string; }; }>; /** * 组件标题,描述程度所指类型 */ readonly titleKey: _angular_core.InputSignalWithTransform; /** * 程度最高值文本 */ readonly highestKey: _angular_core.InputSignalWithTransform; /** * 程度为高值时展示的文本 */ readonly highKey: _angular_core.InputSignalWithTransform; /** * 程度为中值时展示的文本 */ readonly averageKey: _angular_core.InputSignalWithTransform; /** * 程度为低值时展示的文本 */ readonly lowKey: _angular_core.InputSignalWithTransform; private _onChange; private _onTouched; constructor(); ngOnInit(): void; writeValue(value: ThyStrengthEnum): void; registerOnChange(fn: (value: any) => any): void; registerOnTouched(fn: () => any): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * @deprecated ThyStrengthModule will be removed in v23 */ declare class ThyStrengthModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThyStrength, ThyStrengthModule };