import { langType } from '../tools'; import Validator from './Validator'; /** * A validator for number values. */ export default class NumberValue implements Validator { private readonly minValue?; private readonly maxValue?; readonly params: []; /** * Create the validator. * * @param minValue - The minimum value of the field or undefined if no minimum. * @param maxValue - The maximum value of the field or undefined if no maximum. */ constructor(minValue?: number | undefined, maxValue?: number | undefined); validate(value: string): '$shared$nonMatching' | undefined; }