import { FormControl } from '@angular/forms'; /** * This is the base class for all custom reactive form elements. * * @example * export class TsInputComponent extends TsReactiveFormBaseComponent {} */ export declare class TsReactiveFormBaseComponent { /** * Define the internal data model */ protected innerValue: any; /** * Define placeholder for callback (provided later by the control value accessor) */ protected onChangeCallback: (_: any) => void; /** * Define placeholder for callback (provided later by the control value accessor) */ protected onTouchedCallback: () => void; /** * Define the form control to get access to validators */ formControl: FormControl; /** * Set the accessor and call the onchange callback * * @param v */ set value(v: any); get value(): any; /** * Set touched on blur */ onBlur(): void; /** * Register onChange callback (from ControlValueAccessor interface) * * @param fn */ protected registerOnChange(fn: (_: any) => void): void; /** * Register onTouched callback (from ControlValueAccessor interface) * * @param fn */ protected registerOnTouched(fn: () => void): void; /** * Write value to inner value (from ControlValueAccessor interface) * * @param value */ protected writeValue(value: any): void; }