import { UntypedFormControl } from '@angular/forms'; import { Observable, Subject, Subscription } from 'rxjs'; import { FormDefinition, FormType, RxapAbstractControlOptions, SetValueFn } from './model'; import { AsyncValidator, ControlEventOptions, ControlOptions, ControlState, EmitEvent, ExtractStrings, OnlySelf, OrBoxedValue, Validator } from './types'; export declare class RxapFormControl extends UntypedFormControl { /** * @internal */ get rxapFormDefinition(): (FormType & FormDefinition) | undefined; readonly value: T; readonly errors: E | null; readonly valueChanges: Observable; readonly status: ControlState; readonly statusChanges: Observable; readonly initialState: OrBoxedValue; private _readonly; private touchChanges; private dirtyChanges; readonly touch$: Observable; readonly dirty$: Observable; readonly value$: Observable; readonly disabled$: Observable; readonly enabled$: Observable; get readonly(): boolean; set readonly(value: boolean); readonly status$: Observable; readonly errors$: Observable; readonly controlId: string; private readonly _onSetValue; readonly stateChanges: Subject; readonly readonly$: Observable; get controlPath(): string; get fullControlPath(): string; constructor(formState: OrBoxedValue, options: RxapAbstractControlOptions & { controlId: string; }); setValue(valueOrObservable: Observable, options?: ControlOptions): Subscription; setValue(valueOrObservable: T, options?: ControlOptions): void; patchValue(valueOrObservable: Observable, options?: ControlOptions): Subscription; patchValue(valueOrObservable: T, options?: ControlOptions): void; disabledWhile(observable: Observable, options?: ControlOptions): Subscription; enabledWhile(observable: Observable, options?: ControlOptions): Subscription; mergeValidators(validators: Validator): void; mergeAsyncValidators(validators: AsyncValidator): void; markAsTouched(opts?: OnlySelf): void; markAsUntouched(opts?: OnlySelf): void; markAsPristine(opts?: OnlySelf): void; markAsDirty(opts?: OnlySelf): void; markAllAsDirty(): void; reset(formState?: OrBoxedValue, options?: ControlEventOptions): void; setValidators(newValidator: Validator, updateValueAndValidity?: boolean): void; setAsyncValidators(newValidator: AsyncValidator, updateValueAndValidity?: boolean): void; validateOn(observableValidation: Observable): Subscription; getError>(errorCode: K): E[K] | null; hasError>(errorCode: K): boolean; setErrors(errors: Partial | null, opts?: EmitEvent): void; setError(key: string, value: any, opts?: EmitEvent): void; hasErrorAndTouched(error: ExtractStrings): boolean; hasErrorAndDirty(error: ExtractStrings): boolean; setEnable(enable?: boolean, opts?: ControlEventOptions): void; setDisable(disable?: boolean, opts?: ControlEventOptions): void; registerOnSetValue(setValueFn: SetValueFn): void; }