import type { JSONSchema7, Schema } from '../../_types/@internal_ai-sdk-v5/dist/index.js'; import type { z as z3 } from 'zod/v3'; import type { z as z4 } from 'zod/v4'; import type { StandardSchemaWithJSON } from '../../schema/index.js'; export type PartialSchemaOutput = OUTPUT extends undefined ? undefined : Partial; /** * @deprecated Use StandardSchemaWithJSON from '../../schema/index.js' instead */ export type OutputSchema = z4.ZodType | z3.Schema | Schema | JSONSchema7 | undefined; /** * @deprecated Use StandardSchemaWithJSON from '../../schema/index.js' instead * Legacy type for schema validation. */ export type SchemaWithValidation = z4.ZodType | z3.Schema; /** * @deprecated Use InferPublicSchema or InferStandardSchemaOutput from '../../schema/index.js' instead * Infer the output type from a schema */ export type InferSchemaOutput = T extends z4.ZodType ? O : T extends z3.Schema ? O : T extends Schema ? O : unknown; /** * @deprecated Use PublicSchema from '../../schema/index.js' instead */ export type InferZodLikeSchema = T extends z4.ZodType ? O : T extends z3.Schema ? O : unknown; export type ZodLikePartialSchema = (z4.core.$ZodType, any> & { safeParse(value: unknown): { success: boolean; data?: Partial; error?: any; }; }) | (z3.ZodType, z3.ZodTypeDef, any> & { safeParse(value: unknown): { success: boolean; data?: Partial; error?: any; }; }); export declare function asJsonSchema(schema: StandardSchemaWithJSON | undefined): JSONSchema7 | undefined; export declare function getTransformedSchema(schema?: StandardSchemaWithJSON): { jsonSchema: JSONSchema7; outputFormat: string; } | { jsonSchema: JSONSchema7; outputFormat: import("../../_types/@internal_ai-sdk-v5/dist/index.js").JSONSchema7TypeName | import("../../_types/@internal_ai-sdk-v5/dist/index.js").JSONSchema7TypeName[] | undefined; } | undefined; export declare function getResponseFormat(schema?: StandardSchemaWithJSON): { type: 'text'; } | { type: 'json'; /** * JSON schema that the generated output should conform to. */ schema?: JSONSchema7; }; //# sourceMappingURL=schema.d.ts.map