import { type ZodType, z } from "zod"; import type { Message } from "../agents/agent.js"; export declare function outputSchemaToResponseFormatSchema(agentOutput: ZodType): Record; export declare function parseJSON(json: string): any; /** * Ensure that the union array has at least 1 item. * NOTE: the zod union requires at least 2 items (just type definition, not runtime behavior) * so we need to ensure that the union has at least 1 item. * @param union - The union array * @returns The union array with at least 1 item (but the type is at least 2 items for z.union) */ export declare function ensureZodUnionArray(union: T[]): [T, T, ...T[]]; export declare function isZodSchema(schema: ZodType): schema is ZodType; export declare const wrapAutoParseJsonSchema: (schema: T) => T; export declare function getZodObjectKeys(schema: ZodType): string[];