import type { JSONSchema7, Schema } from '../../_types/@internal_ai-sdk-v5/dist/index.d.ts'; 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; type SchemaModelInfo = { provider: string; modelId: string; supportsStructuredOutputs: boolean; }; export declare function getTransformedSchema(schema?: StandardSchemaWithJSON, options?: { model?: SchemaModelInfo; }): { jsonSchema: JSONSchema7; outputFormat: string; } | { jsonSchema: JSONSchema7; outputFormat: import("json-schema").JSONSchema7TypeName | import("json-schema").JSONSchema7TypeName[] | undefined; } | undefined; export declare function getResponseFormat(schema?: StandardSchemaWithJSON, options?: { model?: SchemaModelInfo; }): { type: 'text'; } | { type: 'json'; /** * JSON schema that the generated output should conform to. */ schema?: JSONSchema7; }; export {}; //# sourceMappingURL=schema.d.ts.map