import type { Schema as SchemaV4 } from './_types/@internal_ai-sdk-v4@0.0.96/dist/index.js'; import type { Schema as SchemaV5 } from './_types/@internal_ai-sdk-v5@0.0.96/dist/index.js'; import type { Schema as SchemaV6 } from './_types/@internal_ai-v6@0.0.96/dist/index.js'; import type { JSONSchema7 } from './_types/@types_json-schema@7.0.15/index.js'; import type z3 from 'zod/v3'; import type z4 from 'zod/v4'; import type { StandardSchemaWithJSON } from './standard-schema/standard-schema.types.js'; export type ZodType = z4.ZodType | z3.Schema; export type ZodOptional = z4.ZodOptional | z3.ZodOptional; export type ZodObject = z4.ZodObject | z3.ZodObject; export type ZodArray = z4.ZodArray | z3.ZodArray; export type ZodUnion = z4.ZodUnion | z3.ZodUnion; export type ZodString = z4.ZodString | z3.ZodString; export type ZodNumber = z4.ZodNumber | z3.ZodNumber; export type ZodDate = z4.ZodDate | z3.ZodDate; export type ZodDefault = z4.ZodDefault | z3.ZodDefault; export type AISdkSchemaLike = { _type: Output; }; /** * A shallow structural boundary for Zod schemas. * * Using the full Zod v3 and v4 types in `PublicSchema` forces TypeScript to * deeply compare both type trees whenever a concrete schema is inferred. The * properties below are shared by supported Zod versions and mirror the shape * checked by the runtime Zod guard. */ type StructuralZodSchema = { readonly _output: Output; readonly _input: Input; parse(data: unknown): Output; safeParse(data: unknown): unknown; } & ({ readonly _def: unknown; } | { readonly _zod: unknown; }); export type PublicSchema = StructuralZodSchema | SchemaV4 | SchemaV5 | SchemaV6 | JSONSchema7 | StandardSchemaWithJSON | AISdkSchemaLike; export type InferPublicSchema = T extends { _output: infer Output; } ? Output : T extends { _type: infer Output; } ? Output : T extends { '~standard': { types?: infer Types; }; } ? NonNullable extends { output: infer O; } ? O : T extends PublicSchema ? Output : never : T extends PublicSchema ? Output : never; export {}; //# sourceMappingURL=schema.types.d.ts.map