import * as _angular_core from '@angular/core'; import { ElementRef } from '@angular/core'; import * as i1 from '@angular/common'; import { ControlValueAccessor } from '@angular/forms'; import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core'; type ThySwitchColor = 'primary' | 'info' | 'warning' | 'danger'; /** * 开关组件 * @name thy-switch * @order 10 */ declare class ThySwitch extends TabIndexDisabledControlValueAccessorMixin implements ControlValueAccessor { /** * 颜色 * @type primary | info | warning | danger * @default primary */ readonly thyColor: _angular_core.InputSignal; /** * 类型(已废弃,将在 v23 彻底删除),请使用 thyColor * @deprecated please use thyColor, will be removed in v23 * @type primary | info | warning | danger * @default primary */ readonly thyType: _angular_core.InputSignal; /** * 大小 * @type xs | sm | md * @default md */ readonly thySize: _angular_core.InputSignal; /** * 是否属于禁用状态 */ readonly inputDisabled: _angular_core.InputSignalWithTransform; /** * 是否加载中 */ readonly thyLoading: _angular_core.InputSignalWithTransform; /** * 数据变化的回调事件,即将被弃用,请使用 ngModelChange * @deprecated */ readonly thyChange: _angular_core.OutputEmitterRef; model: _angular_core.WritableSignal; disabled: _angular_core.WritableSignal; get thyDisabled(): boolean; readonly color: _angular_core.Signal; readonly size: _angular_core.Signal; readonly classNames: _angular_core.Signal; readonly loadingCircle: _angular_core.Signal<{ viewBox: string; cx: number; cy: number; r: number; dasharray: string; }>; onModelChange: Function; onModelTouched: Function; readonly switchElementRef: _angular_core.Signal | undefined>; private cdr; constructor(); writeValue(value: boolean): void; registerOnChange(fn: Function): void; registerOnTouched(fn: Function): void; setDisabledState(isDisabled: boolean): void; toggle(event: Event): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class ThySwitchModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { ThySwitch, ThySwitchModule }; export type { ThySwitchColor };