import { ValidatorFn } from '@angular/forms'; /** * Provides a set of validators used by form controls. * * A validator is a function that processes a {@link FormControl} or collection of * controls and returns a map of errors. A null map means that validation has passed. * * ### Example * * ```typescript * var loginControl = new FormControl("", Validators.equalsTo) * ``` */ export declare class WoopaValidators { /** * Validator that compares the value of the given FormControls */ static equalsTo(fieldPaths: string[]): ValidatorFn; /** * Validator that requires controls to maximun value. */ static maxValue(max: number): ValidatorFn; /** * Validate value ocurrences on control value. * * @author Joaquin Volpe * @param count Value ocurrences * @param value Value to search * @returns * @memberof WoopaValidators */ static almost(count: number, value: any): ValidatorFn; /** * Validate control value size. Only for arrays * * @author Joaquin Volpe * @param count Number of ocurrences to check * @param count Filters for list * @returns * @memberof WoopaValidators */ static almostArray(count: number, filters?: any): ValidatorFn; }