import { type ZodSchema } from "zod/v3"; import { IterableReadableStream } from "@langchain/core/utils/stream"; import { ChatMessage, LLMJSONSchema, LLMToolDefinition, ModelParams, ToolCallResponse, TraceParams } from "./types"; import type { BaseCallbackHandler } from "@langchain/core/callbacks/base"; type ProcessTracedEvents = () => Promise; type LLMCompletionParams = { messages: ChatMessage[]; modelParams: ModelParams; structuredOutputSchema?: ZodSchema | LLMJSONSchema; callbacks?: BaseCallbackHandler[]; baseURL?: string; apiKey: string; extraHeaders?: Record; maxRetries?: number; config?: Record | null; traceParams?: TraceParams; throwOnError?: boolean; }; export declare function fetchLLMCompletion(params: LLMCompletionParams & { streaming: true; }): Promise<{ completion: IterableReadableStream; processTracedEvents: ProcessTracedEvents; }>; export declare function fetchLLMCompletion(params: LLMCompletionParams & { streaming: false; }): Promise<{ completion: string; processTracedEvents: ProcessTracedEvents; }>; export declare function fetchLLMCompletion(params: LLMCompletionParams & { streaming: false; structuredOutputSchema: ZodSchema; }): Promise<{ completion: Record; processTracedEvents: ProcessTracedEvents; }>; export declare function fetchLLMCompletion(params: LLMCompletionParams & { tools: LLMToolDefinition[]; streaming: false; }): Promise<{ completion: ToolCallResponse; processTracedEvents: ProcessTracedEvents; }>; export {}; //# sourceMappingURL=fetchLLMCompletion.d.ts.map