import { langType } from '../tools'; import Validator from './Validator'; /** * A validator for a maximum value length. */ export default class MaxLength implements Validator { readonly params: [string]; private readonly values; /** * Create the validator. * * @param values - The allowed values. */ constructor(...values: string[]); validate(value: string): '$shared$notInList' | undefined; }