import { ControlValueAccessor } from "@angular/forms"; /** * Implements the Control Value Accessor pattern from Angular */ export declare class ValueAccessorBase implements ControlValueAccessor { private innerValue; private changed; private touched; /** Gets or sets the inner value of the component */ value: T; /** * Called when the control receives a touch event. * Calls all the functions registered by registerOnTouched(). */ touch(): void; /** * Write a new value to the element. * from ControlValueAccessor */ writeValue(value: T): void; /** * Set the function to be called when the control receives a change event. * from ControlValueAccessor */ registerOnChange(fn: (value: T) => void): void; /** * Set the function to be called when the control receives a touch event. * from ControlValueAccessor */ registerOnTouched(fn: () => void): void; /** * This function is called when the control status changes to or from "DISABLED". * Depending on the value, it will enable or disable the appropriate DOM element. * from ControlValueAccessor * * @param isDisabled The value that is set to the disabled attribute. */ setDisabledState?(isDisabled: boolean): void; }