import type { ZodEnum } from 'zod'; import type { StringSchema, StringSchema_ } from '../../../index.js'; import type { SchemaProps } from '../../../schema/types/schemaProps.js'; import type { Overwrite } from '../../../types/overwrite.js'; export type ZodEnumAny = ZodEnum<[string, ...string[]]>; export type FromZodEnum = ZOD_SCHEMA extends ZodEnum ? ROOT extends true ? StringSchema_> : StringSchema> : never; export declare const fromZodEnum: (zodEnum: ZodEnumAny) => StringSchema;