import { AbstractObjectSchema } from "./schema"; /** * String schema */ export declare class StringObjectSchema extends AbstractObjectSchema { /** * Creates string schema * @returns a new instance of StringObjectSchema */ static create(): StringObjectSchema; private schema; /** * Constructor */ constructor(); /** * Sets default value, in case the object is null, undefined or cannot be parsed * @param defaultValue The default value * @returns self */ withDefaultValue(defaultValue: string): StringObjectSchema; /** * Sets max length for the string. If the string length is greater than this value, it will be truncated. * @param maxLength The max length for the string. * @returns self */ withMaxLength(maxLength: number): StringObjectSchema; /** * Sets a regular expression the string must match * @param regExp The regular expression * @returns self */ withRegularExpression(regExp: RegExp): StringObjectSchema; /** * Sets an enumeration of allowed values * @param enumeration The enumeration * @returns self */ withEnumeration(enumeration: string[]): StringObjectSchema; }