import { Injector } from '@angular/core'; import { MdyFormValidatorFn, MdyFormValue, MdyTypedForm } from '@modyra/angular/adapter'; import { MdyZodSchemaTree } from '@modyra/zod'; export { MdyZodSchemaTree } from '@modyra/zod'; import { z } from 'zod'; interface MdyZodFormOptions = Record> { readonly submitMode?: "valid-only" | "always" | "manual"; readonly injector?: Injector; /** Extra form-level validators, merged after the schema's refinements. */ readonly validators?: ReadonlyArray>; } /** * Builds an Angular typed form from a `z.object()` schema — one source of * truth for TypeScript types, validators, messages and required flags. * See `@modyra/zod` for the shared semantics; bind the result with * `[form]` and `[field]` exactly like `mdyForm()`. */ declare function mdyFormFromSchema(schema: T, options?: MdyZodFormOptions>>): MdyTypedForm>; export { mdyFormFromSchema }; export type { MdyZodFormOptions }; //# sourceMappingURL=modyra-angular-zod.d.ts.map