import type { $ZodString, $ZodTemplateLiteral } from 'zod/v4/core'; import type { FormField, FormProcessorContext, ProcessParams } from '../types.js'; /** * Process `z.string()` — renders as an `Input` with appropriate `type` for all formats. * String date/time formats (`date`, `time`, `datetime`) map to native HTML inputs * (`type="date"`, `type="time"`, `type="datetime-local"`), keeping register-compatible * string values. Only `z.date()` (Date-object schema) routes to `DatePicker`. * Extracts format, minLength, maxLength, and pattern constraints from the constraint bag. * Converts regex patterns to input masks via `regexToMask` when possible. * * @param schema - The `$ZodString` schema to process. * @param ctx - The walker context providing the form registry for component overrides. * @param field - The base FormField to mutate in-place. * @param _params - Unused; included for processor signature conformance. * * @remarks * Format-to-input-type mapping: `email` → `type="email"`, `url` → `type="url"`, * `date` → `type="date"`, `time` → `type="time"`, `datetime` → `type="datetime-local"`. * All string formats stay on `Input`; `DatePicker` is reserved for `z.date()` only. * Pattern is extracted from `bag.patterns` (a `Set`); only the first pattern is used. * * @category Processors */ export declare function processString(schema: $ZodString, ctx: FormProcessorContext, field: FormField, _params: ProcessParams): void; /** * Process `z.templateLiteral()` — renders as a plain text `Input`. * Template literals have a fixed structure; no constraints are extracted. * * @param schema - The `$ZodTemplateLiteral` schema to process. * @param _ctx - The walker context (unused for template literal processing). * @param field - The base FormField to mutate in-place. * @param _params - Unused; included for processor signature conformance. * * @category Processors */ export declare function processTemplateLiteral(schema: $ZodTemplateLiteral, _ctx: FormProcessorContext, field: FormField, _params: ProcessParams): void; //# sourceMappingURL=string.d.ts.map