import { ValidatorFn } from '@angular/forms'; /** * Class holding custom SiLA Browser (sb) validators * * This is the container where validator functinons can be defined */ export declare class SBValidationService { /*** * Data type validator: used to validate the input of form * matches expected data type of model e.g/. Integer, Real * * * param {string} dataType which form value is validated against * returns {ValidatorFn} null if validation passes, object with * validation information otherwise */ static typeValidator(dataType: string): ValidatorFn; /** * Form validator to perform range checking of form input data * * Note: this additional validator was added although there * already exists Angular validators.max() and .min() as this * one conversely also returns an error object with a message. * * function rangeValidator (name) * param {} min The minimum * param {} max The maximum * param {} control The control * return {} { description_of_the_return_value } */ static rangeValidator(min: number, max: number): ValidatorFn; }