import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { ControlValueAccessor, NgControl, UntypedFormControl } from '@angular/forms'; import { IErrorMessages, InternalMode } from '../form-field.model'; import { Subject } from 'rxjs'; import * as i0 from "@angular/core"; export declare class PaFormControlDirective implements OnChanges, OnInit, OnDestroy, ControlValueAccessor { protected element: ElementRef; protected parentControl: NgControl; protected cdr: ChangeDetectorRef; readonly: boolean; help: string; errorMessages?: IErrorMessages; set id(value: string | undefined); get id(): string | undefined; set name(value: string); get name(): string; set value(value: any); set disabled(value: any); get disabled(): any; /** * Manual error messaging */ set errorMessage(message: string | undefined); get isActive(): boolean; valueChange: EventEmitter; statusChange: EventEmitter; readonly autoId: number; readonly htmlId: string | undefined; control: UntypedFormControl; internalMode: InternalMode; describedById?: string; protected fieldType: string; protected terminator$: Subject; private _formControlName; private _id?; private _formattedId?; private _name?; private _formattedName; constructor(element: ElementRef, parentControl: NgControl, cdr: ChangeDetectorRef); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; ngOnDestroy(): void; onChange(val: any): void; registerOnChange(fn: any): void; onTouched(): void; registerOnTouched(fn: any): void; /** * because the value may be set locally * write value could be triggered even when the change was already applied * processing is skipped in this case */ writeValue(value: any): void; /** * id received as input is used whenever possible (avoiding duplicate identifier). * when no id is provided, a generated id is built. */ private _setupIdentifiers; private _initFormControl; private updateHtmlValue; setDisabledState(isDisabled: boolean): void; protected _checkDescribedBy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_readonly: unknown; static ngAcceptInputType_help: string | null | undefined; }