import { ElementRef, Renderer2 } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare const UI_SWITCH_VALUE_ACCESSOR: any; export declare class UiSwitchComponent implements ControlValueAccessor { private renderer; checkboxElementRef: ElementRef; /** * @description * The registered callback function called when a change event occurs on the input element. */ onChange: (_: any) => void; /** * @description * The registered callback function called when a blur event occurs on the input element. */ onTouched: () => void; constructor(renderer: Renderer2); /** * Sets the "checked" property on the input element. * * @param value The checked value */ writeValue(value: any): void; /** * @description * Registers a function called when the control value changes. * * @param fn The callback function */ registerOnChange(fn: (_: any) => {}): void; /** * @description * Registers a function called when the control is touched. * * @param fn The callback function */ registerOnTouched(fn: () => {}): void; /** * Sets the "disabled" property on the input element. * * @param isDisabled The disabled value */ setDisabledState(isDisabled: boolean): void; }