import type { z as zV3 } from 'zod/v3'; import type { z as zV4 } from 'zod/v4'; /** * All supported string validation check types that can be processed or converted to descriptions. * @constant */ export declare const ALL_STRING_CHECKS: readonly ['regex', 'emoji', 'email', 'url', 'uuid', 'cuid', 'min', 'max']; /** * All supported number validation check types that can be processed or converted to descriptions. * @constant */ export declare const ALL_NUMBER_CHECKS: readonly ['min', 'max', 'multipleOf']; /** * All supported array validation check types that can be processed or converted to descriptions. * @constant */ export declare const ALL_ARRAY_CHECKS: readonly ['min', 'max', 'length']; /** * Zod types that are not supported by most AI model providers and should be avoided. * @constant */ export declare const UNSUPPORTED_ZOD_TYPES: readonly ['ZodIntersection', 'ZodNever', 'ZodNull', 'ZodTuple', 'ZodUndefined']; /** * Zod types that are generally supported by AI model providers. * @constant */ export declare const SUPPORTED_ZOD_TYPES: readonly ['ZodObject', 'ZodArray', 'ZodUnion', 'ZodString', 'ZodNumber', 'ZodDate', 'ZodAny', 'ZodDefault', 'ZodNullable']; /** * All Zod types (both supported and unsupported). * @constant */ export declare const ALL_ZOD_TYPES: readonly ["ZodObject", "ZodArray", "ZodUnion", "ZodString", "ZodNumber", "ZodDate", "ZodAny", "ZodDefault", "ZodNullable", "ZodIntersection", "ZodNever", "ZodNull", "ZodTuple", "ZodUndefined"]; /** * Type representing string validation checks. */ export type StringCheckType = (typeof ALL_STRING_CHECKS)[number]; /** * Type representing number validation checks. */ export type NumberCheckType = (typeof ALL_NUMBER_CHECKS)[number]; /** * Type representing array validation checks. */ export type ArrayCheckType = (typeof ALL_ARRAY_CHECKS)[number]; /** * Type representing unsupported Zod schema types. */ export type UnsupportedZodType = (typeof UNSUPPORTED_ZOD_TYPES)[number]; /** * Type representing supported Zod schema types. */ export type SupportedZodType = (typeof SUPPORTED_ZOD_TYPES)[number]; /** * Type representing all Zod schema types (supported and unsupported). */ export type AllZodType = (typeof ALL_ZOD_TYPES)[number]; /** * Utility type to extract the shape of a Zod object schema. */ export type ZodShape | zV4.ZodObject> = T['shape']; /** * Utility type to extract the keys from a Zod object shape. */ export type ShapeKey | zV4.ZodObject> = keyof ZodShape; /** * Utility type to extract the value types from a Zod object shape. */ export type ShapeValue | zV4.ZodObject> = ZodShape[ShapeKey]; export declare function isOptional(z: Z): (v: any) => v is zV3.ZodOptional; export declare function isOptional(z: Z): (v: any) => v is zV4.ZodOptional; export declare function isObj(z: Z): (v: any) => v is zV3.ZodObject; export declare function isObj(z: Z): (v: any) => v is zV4.ZodObject; export declare function isNull(z: Z): (v: any) => v is zV3.ZodNull; export declare function isNull(z: Z): (v: any) => v is zV4.ZodNull; export declare function isArr(z: Z): (v: any) => v is zV3.ZodArray; export declare function isArr(z: Z): (v: any) => v is zV4.ZodArray; export declare function isUnion(z: Z): (v: any) => v is zV3.ZodUnion; export declare function isUnion(z: Z): (v: any) => v is zV4.ZodUnion; export declare function isString(z: Z): (v: any) => v is zV3.ZodString; export declare function isString(z: Z): (v: any) => v is zV4.ZodString; export declare function isNumber(z: Z): (v: any) => v is zV3.ZodNumber; export declare function isNumber(z: Z): (v: any) => v is zV4.ZodNumber; export declare function isDate(z: Z): (v: any) => v is zV3.ZodDate; export declare function isDate(z: Z): (v: any) => v is zV4.ZodDate; export declare function isDefault(z: Z): (v: any) => v is zV3.ZodDefault; export declare function isDefault(z: Z): (v: any) => v is zV4.ZodDefault; export declare function isNullable(z: Z): (v: any) => v is zV3.ZodNullable; export declare function isNullable(z: Z): (v: any) => v is zV4.ZodNullable; export declare function isIntersection(z: Z): (v: any) => v is zV3.ZodIntersection; export declare function isIntersection(z: Z): (v: any) => v is zV4.ZodIntersection; //# sourceMappingURL=zodTypes.d.ts.map