/*!
 * Copyright 2020 VMware, Inc.
 * SPDX-License-Identifier: BSD-2-Clause
 */
import { ValidatorFn } from '@angular/forms';
/**
 * validators used for form control validations.
 */
export declare class FormValidators {
    /**
     * A wrapper that validates that a control's value is defined before running the validator function.
     *
     * @param validator The validator function to run if the control's value is defined.
     */
    static createNullSafeValidator(validator: (...args: any[]) => unknown): ValidatorFn;
    /**
     * Create a validator that requires a number to be within a range.
     * Also checks that the value is numeric
     * Accepts a translation key to display proper error messaging
     */
    static isNumberInRange(min: number, max: number, translationKey?: string): ValidatorFn;
}
