import { CombinedStandardProps, SchemaPrimitive } from "../core/types.mjs"; import { BaseSchema } from "../core/base.mjs"; //#region src/schemas/string.d.ts declare class StringSchemaType extends BaseSchema { readonly type: SchemaPrimitive; private _validateDate; private _validateUUID; private _validateRegex; private _validateEmail; private _validatePhone; private _validateDomain; private _requireHttpOrHttps; private _minLength?; private _maxLength?; constructor(); primitive(): SchemaPrimitive; /** * Require minimum string length. * @param {number} n Minimum length. * @returns {StringSchemaType} New constrained schema. */ minLength(n: number): StringSchemaType; /** * Require maximum string length. * @param {number} n Maximum length. * @returns {StringSchemaType} New constrained schema. */ maxLength(n: number): StringSchemaType; /** * Validate value as parseable date string. * @returns {StringSchemaType} New constrained schema. */ date(): StringSchemaType; /** * Validate value as a UUID string. * @returns {StringSchemaType} New constrained schema. */ uuid(): StringSchemaType; /** * Validate value matches a regex. * @param {RegExp} regex Pattern to match. * @returns {StringSchemaType} New constrained schema. */ regex(regex: RegExp): StringSchemaType; /** * Validate value as an email. * @returns {StringSchemaType} New constrained schema. */ email(): StringSchemaType; /** * Validate value as a phone number. * @returns {StringSchemaType} New constrained schema. */ phone(): StringSchemaType; /** * Validate value as a domain name. * @param {boolean} [requireHttpOrHttps=true] Require http(s) prefix. * @returns {StringSchemaType} New constrained schema. */ domain(requireHttpOrHttps?: boolean): StringSchemaType; get ["~standard"](): CombinedStandardProps; private _isValidDate; private _isValidUUID; private _isValidRegex; private _isValidEmail; private _isValidPhone; private _isValidDomain; } //#endregion export { StringSchemaType }; //# sourceMappingURL=string.d.mts.map