import type { ZodUnion, ZodUnionOptions } from 'zod'; import type { AnyOfSchema, AnyOfSchema_ } from '../../../index.js'; import type { SchemaProps } from '../../../schema/types/schemaProps.js'; import type { FromZodSchemaRec } from './fromZodSchema.js'; export type ZodUnionAny = ZodUnion; export type FromZodUnion = ZOD_SCHEMA extends ZodUnion ? ROOT extends true ? AnyOfSchema_, PROPS> : AnyOfSchema, PROPS> : never; export declare const fromZodUnion: (zodUnion: ZodUnionAny) => AnyOfSchema;