import { ControlValueAccessor } from '@angular/forms'; /** * allows the user to modify a given element of an array attribute * * An optional index attribute lets you choose which N'th element of the array should be modified (default is 0) * * @example * * {{ 'PAGES.REGISTER.EMAIL' | translate }} * * */ export declare class ElementOfArrayComponent implements ControlValueAccessor { index: number; /** * The elements value stored in the model */ private _elementsValue; /** * The element value as it will be displayed in the DOM */ private _displayedElementValue; elementsValue: string[]; displayedElementValue: any; /** * This method is part of ControlValueAccessor interface. * Its role is to set value from the model to the DOM * * @param value Value given from the model */ writeValue(value: any): void; /** * This method is part of ControlValueAccessor interface. * Its role is to set the function that will propagate changes from the DOM to the model. * * @param fn {function} Angular internal function */ registerOnChange(fn: any): void; /** * This method is part of ControlValueAccessor interface. * Not used here */ registerOnTouched(): void; /** * Container for the propagation function. */ propagateChange: (_: any) => void; }