import { BaseValidator } from './base'; import isEmail from '../lib/isEmail'; import isURL from '../lib/isURL'; import type { StringValidatorType, ValidationNames } from '../types/index'; export declare function string(): StringValidator; export declare class StringValidator extends BaseValidator implements StringValidatorType { name: ValidationNames; constructor(); min(length: number): this; max(length: number): this; length(length: number): this; email(options?: Parameters[1]): this; url(options?: Parameters[1]): this; matches(pattern: RegExp): this; equals(param: string): this; alphanumeric(): this; alpha(): this; numeric(): this; custom(fn: (value: string) => boolean, message: string): this; }