import type { ParseContext, SchemaNode, StringFormat } from "../types.js"; import { BaseSchema } from "./base.js"; export declare class StringSchema extends BaseSchema { private _minLength?; private _maxLength?; private _pattern?; private _startsWith?; private _endsWith?; private _includes?; private _format?; /** * Cached compiled pattern. `undefined` = not yet compiled, `null` = * compilation failed (invalid pattern). Avoids recompiling on every value. */ private _patternRe?; _getCoercionTarget(): string; minLength(n: number): this; maxLength(n: number): this; pattern(p: string): this; /** Lazily compile and cache the pattern. Returns null if invalid. */ private _getPatternRe; startsWith(s: string): this; endsWith(s: string): this; includes(s: string): this; format(f: StringFormat): this; _validate(input: unknown, ctx: ParseContext): unknown; _toNode(): SchemaNode; } //# sourceMappingURL=string.d.ts.map