import * as i0 from '@angular/core'; import * as i1 from '@angular/common'; import * as i2 from '@angular/forms'; import { ControlValueAccessor } from '@angular/forms'; import { ThyFormCheckBaseComponent } from 'ngx-tethys/shared'; /** * 多选框组件 * @name thy-checkbox,[thy-checkbox],[thyCheckbox] * @order 10 */ declare class ThyCheckbox extends ThyFormCheckBaseComponent { /** * 设置 indeterminate 状态,只负责样式控制 * @description.en-us Set the indeterminate state, responsible only for style control */ readonly thyIndeterminate: i0.InputSignalWithTransform; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Checkbox Group 选项 */ interface ThyCheckboxOption { /** * 选项展示文案 */ label: string; /** * 选项值;选中后进入 Group 的 ngModel 数组 */ value: string | number | boolean; /** * 是否禁用该选项 */ disabled?: boolean; } type ThyCheckboxGroupValue = Array; /** * 多选框组合 * @name thy-checkbox-group * @order 20 */ declare class ThyCheckboxGroup implements ControlValueAccessor { /** * 选项列表 */ readonly thyOptions: i0.InputSignal; /** * 是否同一行展示 * @default false */ readonly thyInline: i0.InputSignalWithTransform; /** * 是否禁用整组 * @default false */ readonly thyDisabled: i0.InputSignalWithTransform; private readonly innerValue; private readonly formDisabled; private onChange; private onTouched; readonly isGroupDisabled: i0.Signal; isChecked(optionValue: string | number | boolean): boolean; isOptionDisabled(option: ThyCheckboxOption): boolean; onCheckboxChange(option: ThyCheckboxOption, event: Event): void; writeValue(value: ThyCheckboxGroupValue | null | undefined): void; registerOnChange(fn: (value: ThyCheckboxGroupValue) => void): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; private toggle; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ThyCheckboxModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ThyCheckbox, ThyCheckboxGroup, ThyCheckboxModule }; export type { ThyCheckboxGroupValue, ThyCheckboxOption };