import IODefinitions from '../../core/definitions.cjs'; import Node from '../../parser/nodes/nodes.cjs'; import TypeDef from '../typedef.cjs'; import IOSchema from '../schema.cjs'; import MemberDef from './memberdef.cjs'; import '../schema-types.cjs'; import '../../core/positions.cjs'; /** * Represents the StringTypeDef which is reponsible for parsing, * validating, loading and serializing strings. * * It performs the following validation * - Value is string * - Value is optional * - Value is null * - Value is in choices * - Value length <= maxLength * - Value length >= minLen */ declare class StringDef implements TypeDef { private _type; constructor(type?: string); get type(): string; static get types(): string[]; get schema(): IOSchema; /** * Parses the string in IO format into JavaScript strings. */ parse(valueNode: Node, memberDef: MemberDef, defs?: IODefinitions): string; /** Load: JS Value → Validated JS Value */ load(value: any, memberDef: MemberDef, defs?: IODefinitions): string; stringify(value: string, memberDef: MemberDef): string; } export { StringDef as default };