import * as t from '@sinclair/typebox'; import * as z from 'zod'; type TFromAny = Result; type TFromArray>> = Result; type TFromBigInt = Result; type TFromBoolean = Result; type TFromDate = Result; type TFromFunction> = (MappedParameters extends [z.ZodTypeAny, ...z.ZodTypeAny[]] | [] ? z.ZodFunction, TFromType> : z.ZodNever); type TFromInteger = Result; type TFromIntersect = (Types extends [infer Left extends t.TSchema, ...infer Right extends t.TSchema[]] ? TFromIntersect, Result>> : Result); type TFromLiteral> = Result; type TFromObject; }>> = Result; type TFromPromise>> = Result; type TFromRegExp = Result; type TFromRecord = (TFromType extends infer ZodKey extends z.KeySchema ? z.ZodRecord> : z.ZodNever); type TFromNever = Result; type TFromNull = Result; type TFromNumber = Result; type TFromString = Result; type TFromSymbol = Result; type TFromTuple> = (Mapped extends [z.ZodTypeAny, ...z.ZodTypeAny[]] | [] ? z.ZodTuple : z.ZodNever); type TFromUndefined = Result; type TFromUnion> = (Mapped extends z.ZodUnionOptions ? z.ZodUnion : z.ZodNever); type TFromUnknown = Result; type TFromVoid = Result; type TFromTypes = (Types extends [infer Left extends t.TSchema, ...infer Right extends t.TSchema[]] ? TFromTypes]> : Result); type TFromType = (Type extends t.TAny ? TFromAny : Type extends t.TArray ? TFromArray : Type extends t.TBigInt ? TFromBigInt : Type extends t.TBoolean ? TFromBoolean : Type extends t.TDate ? TFromDate : Type extends t.TFunction ? TFromFunction : Type extends t.TInteger ? TFromInteger : Type extends t.TIntersect ? TFromIntersect : Type extends t.TLiteral ? TFromLiteral : Type extends t.TNever ? TFromNever : Type extends t.TNull ? TFromNull : Type extends t.TNumber ? TFromNumber : Type extends t.TObject ? TFromObject : Type extends t.TPromise ? TFromPromise : Type extends t.TRecord ? TFromRecord : Type extends t.TRegExp ? TFromRegExp : Type extends t.TString ? TFromString : Type extends t.TSymbol ? TFromSymbol : Type extends t.TTuple ? TFromTuple : Type extends t.TUndefined ? TFromUndefined : Type extends t.TUnion ? TFromUnion : Type extends t.TUnknown ? TFromUnknown : Type extends t.TVoid ? TFromVoid : z.ZodNever), IsReadonly extends boolean = Type extends t.TReadonly ? true : false, IsOptional extends boolean = Type extends t.TOptional ? true : false, Result extends z.ZodTypeAny | z.ZodEffects = ([ IsReadonly, IsOptional ] extends [true, true] ? z.ZodReadonly> : [ IsReadonly, IsOptional ] extends [false, true] ? z.ZodOptional : [ IsReadonly, IsOptional ] extends [true, false] ? z.ZodReadonly : Mapped)> = Result; /** Creates a Zod type from TypeBox */ export type TZodFromTypeBox = TFromType> = Result; /** Creates a Zod type from TypeBox */ export declare function ZodFromTypeBox(type: Type): TZodFromTypeBox; export {};