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