import { AbstractControl, FormArray } from "@angular/forms"; import { CfFormErrors } from "./formerrors.class"; export interface CfFormArrayOptions { label?: string; errorLabelPathMode?: 'notincluded' | 'index'; } export interface CfFormArrayOptionsExtended extends CfFormArrayOptions { errorLabelPathMode: 'notincluded' | 'index'; } export declare class CfFormArray = any> extends FormArray { cfOptions: CfFormArrayOptionsExtended; /** * Collect errors */ collectErrors(errors?: CfFormErrors, labelPath?: string[]): CfFormErrors; /** * Set options, normally it is overwritten in a subclass * * @param options `CfFormArrayOptions` * @returns `CfFormArray` */ setCfOptions(options: CfFormArrayOptions): CfFormArray; }