import * as i0 from '@angular/core'; import { OnInit, OnChanges, ElementRef, ChangeDetectorRef, Renderer2, SimpleChanges, QueryList } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; type AvailableValues = boolean | string | number; /** * Add checkbox functionality to any element */ declare class ButtonCheckboxDirective implements ControlValueAccessor, OnInit { /** Truthy value, will be set to ngModel */ btnCheckboxTrue: i0.InputSignal; /** Falsy value, will be set to ngModel */ btnCheckboxFalse: i0.InputSignal; state: boolean; protected value?: AvailableValues; protected isDisabled: boolean; protected onChange: Function; protected onTouched: Function; onClick(): void; ngOnInit(): void; protected get trueValue(): AvailableValues; protected get falseValue(): AvailableValues; toggle(state: boolean): void; writeValue(value: boolean | string | null): void; setDisabledState(isDisabled: boolean): void; registerOnChange(fn: () => void): void; registerOnTouched(fn: () => void): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Create radio buttons or groups of buttons. * A value of a selected button is bound to a variable specified via ngModel. */ declare class ButtonRadioDirective implements ControlValueAccessor, OnChanges { private el; private cdr; private renderer; private group; onChange: Function; onTouched: Function; /** Radio button value, will be set to `ngModel` */ btnRadio: i0.InputSignal; /** If `true` — radio button can be unchecked */ uncheckable: i0.InputSignal; /** Current value of radio component or group */ valueInput: i0.InputSignal; /** If `true` — radio button is disabled */ disabledInput: i0.InputSignal; get value(): unknown | undefined; set value(value: unknown | undefined); get disabled(): boolean; get controlOrGroupDisabled(): true | undefined; get hasDisabledClass(): boolean | undefined; get isActive(): boolean; readonly role: string; get tabindex(): undefined | number; get hasFocus(): boolean; private _value?; private _disabled; private _hasFocus; private _uncheckable; constructor(el: ElementRef, cdr: ChangeDetectorRef, renderer: Renderer2, group: ButtonRadioGroupDirective); toggleIfAllowed(): void; onSpacePressed(event: Event): void; focus(): void; onFocus(): void; onBlur(): void; canToggle(): boolean; ngOnChanges(changes: SimpleChanges): void; _onChange(value?: unknown): void; writeValue(value: unknown): void; registerOnChange(fn: () => void): void; registerOnTouched(fn: () => void): void; setDisabledState(disabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * A group of radio buttons. * A value of a selected button is bound to a variable specified via ngModel. */ declare class ButtonRadioGroupDirective implements ControlValueAccessor { private cdr; onChange: Function; onTouched: Function; readonly role: string; radioButtons?: QueryList; constructor(cdr: ChangeDetectorRef); private _value?; get value(): unknown | undefined; set value(value: unknown | undefined); private _disabled; get disabled(): boolean; get tabindex(): null | number; writeValue(value?: string): void; registerOnChange(fn: () => void): void; registerOnTouched(fn: () => void): void; setDisabledState(disabled: boolean): void; onFocus(): void; onBlur(): void; selectNext(event: Event): void; selectPrevious(event: Event): void; private selectInDirection; private getActiveOrFocusedRadio; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class ButtonsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ButtonCheckboxDirective, ButtonRadioDirective, ButtonRadioGroupDirective, ButtonsModule };