import { FormArray, FormGroup } from "@angular/forms"; import * as i0 from "@angular/core"; interface IAbstractFormArrayRemovalBaseControlValue { stringValue: string; numberValue: number; nullValue: null; } export declare abstract class AbstractFormArrayRemovalComponent { private readonly router; private readonly activatedRoute; protected getFormArrayControlValue(formArray: FormArray, controlName: string, rowIndex: number, defaultValue: IAbstractFormArrayRemovalBaseControlValue[keyof IAbstractFormArrayRemovalBaseControlValue]): IAbstractFormArrayRemovalBaseControlValue[keyof IAbstractFormArrayRemovalBaseControlValue]; /** * Removes a control from the given form array at the specified index and renumbers the remaining controls. * * @param formArray - The form array from which to remove the control. * @param removeIndex - The index of the control to remove. * @param fieldNames - The names of the fields associated with the controls. * @param dynamicFieldPrefix - The prefix used for dynamically generated field names. */ protected removeControlAndRenumber(formArray: FormArray, removeIndex: number, fieldNames: string[], dynamicFieldPrefix: string): void; /** * Renumber the controls in a FormArray starting from a specific index. * This method updates the control keys of each FormGroup within the FormArray. * * @param formArray - The FormArray to renumber the controls for. * @param startIndex - The index to start renumbering the controls from. * @param fieldNames - The names of the fields in the FormGroup. * @param dynamicFieldPrefix - The prefix to use for dynamic field names. */ protected renumberControls(formArray: FormArray, startIndex: number, fieldNames: string[], dynamicFieldPrefix: string): void; /** * Updates the control keys in a form group based on the provided parameters. * @param formGroup - The form group to update. * @param index - The index of the form group within an array. * @param fieldNames - An array of field names to update. * @param dynamicFieldPrefix - The prefix to use for dynamic field keys. */ protected updateControlKeys(formGroup: FormGroup, index: number, fieldNames: string[], dynamicFieldPrefix: string): void; /** * Handles route with the supplied route * * @param route string of route * @param nonRelative boolean indicating if route is relative to the parent */ handleRoute(route: string, nonRelative?: boolean, event?: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }