import type { FormValidatorMap, ZodLike, ZodValidatorOptions } from './form.types.js'; /** * Splits a Zod-compatible object schema into a `FormValidatorMap`. Every key of * the schema's `shape` becomes its own validator that parses only that field's * value, so a change to one control re-runs one rule instead of the whole * schema. Errors carry no routing id; the map key supplies it. * * @remarks * Object-level rules (`.refine()` / `.superRefine()`) cannot be attributed to * a single field, so they run in a `strato_form_all` entry that parses the * whole schema and keeps only the issues the per-field rules did not already * report. That entry re-runs on any field change unless `options.dependOn` * narrows it. Schemas without a `shape` (not an object) produce only that * entry, with errors routed by `path[0]`. * * @param schema - Any schema with a `safeParse` method (Zod v3/v4, Valibot * compat shim, etc.). No `zod` peer dependency is added. * @param options - Optional `validateOn`, `active` and `dependOn`, applied to * the generated configs. * @internal */ export declare function fromZodSchema>(schema: ZodLike, options?: ZodValidatorOptions): FormValidatorMap; //# sourceMappingURL=fromZodSchema.d.ts.map