import { z } from 'zod'; import { O as OpenAIStreamCallbacks } from '../openai-stream-5a389678.js'; import 'openai-edge'; import 'openai-edge/types/api'; declare const FunctionSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; parameters: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord; required: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "object"; properties: Record; required?: string[] | undefined; }, { type: "object"; properties: Record; required?: string[] | undefined; }>; }, "strip", z.ZodTypeAny, { name: string; description: string; parameters: { type: "object"; properties: Record; required?: string[] | undefined; }; }, { name: string; description: string; parameters: { type: "object"; properties: Record; required?: string[] | undefined; }; }>; type FunctionSchemaType = z.infer; declare class FunctionHandler { name: string; description: string; parameters: FunctionSchemaType['parameters']; /** * If the handler is undefined, the function will be sent to the client. */ handler?: (args: any) => ReturnType>; constructor(functionSchema: FunctionSchemaType, handler?: (args: any) => ReturnType>); validate(args: any): any; execute(args: any): Promise; } export { FunctionHandler };