import { ChangeDetectorRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { RhSafeAny, WithNil } from 'rh-base/model'; import * as i0 from "@angular/core"; /** * formControl表单控件的基类 * @description 继承此类的组件,需要注册自身为提供商,形如: * `providers:[provideValueAccessor(XXXComponent)]` * 子类处理数据时需要继承`AfterViewInit`而不是`OnInit` */ export declare class RhControlValueAccessor implements ControlValueAccessor { cdr: ChangeDetectorRef; rhDisabled: boolean; protected _value: string | number | RhSafeAny; protected _oldValue: string | number | RhSafeAny; get value(): WithNil; set value(value: WithNil); /** value赋值之后的处理函数 */ valueHandler: (value: WithNil) => void; onChange: (value: WithNil) => void; onTouched: (value: WithNil) => void; constructor(cdr: ChangeDetectorRef); clearValue(): void; writeValue(obj: string | number): void; registerOnChange(fn: RhSafeAny): void; registerOnTouched(fn: RhSafeAny): void; setDisabledState?(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }