import * as i0 from '@angular/core'; import { EventEmitter, ElementRef, ChangeDetectorRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import * as i1 from '@angular/common'; declare class ToggleButtonComponent implements ControlValueAccessor { private elementRef; private cdr; checked: boolean; checkChanged: EventEmitter; constructor(elementRef: ElementRef, cdr: ChangeDetectorRef); onClick(event: PointerEvent): void; onFocusOut(): void; focusToggledButton(): void; /** * Sets the toggle button's value. Part of the ControlValueAccessor interface * required to integrate with Angular's core forms API. * * @param checked New value to be written to the model. */ writeValue(checked: boolean): void; private onChange; private onTouched; /** * Saves a callback function to be invoked when the toggle button's value * changes from user input. Part of the ControlValueAccessor interface * required to integrate with Angular's core forms API. * * @param fn Callback to be triggered when the value changes. */ registerOnChange(fn: (checked: boolean) => void): void; /** * Saves a callback function to be invoked when the toggle button is blurred * by the user. Part of the ControlValueAccessor interface required * to integrate with Angular's core forms API. * * @param fn Callback to be triggered when the component has been touched. */ registerOnTouched(fn: () => void): void; /** * Disables the toggle button. Part of the ControlValueAccessor interface required * to integrate with Angular's core forms API. * * @param isDisabled Sets whether the component is disabled. */ setDisabledState(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ToggleButtonModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ToggleButtonComponent, ToggleButtonModule }; //# sourceMappingURL=kirbydesign-designsystem-toggle-button.d.ts.map