import { ExecutionOptions, LLMCache, LLMMeta, EmbeddingOutput, BaseLLMTokenizeOutput, GenerateOptions, StreamGenerateOptions, AsyncStream, BaseLLMEvents } from '../../llms/base.js'; import { ChatLLMOutput, ChatLLMGenerateEvents, ChatLLM } from '../../llms/chat.js'; import { BaseMessage } from '../../llms/primitives/message.js'; import { E as Emitter } from '../../emitter-l0W9gC1A.js'; import { ChatResponse, Ollama, Options, ChatRequest } from 'ollama'; import { GetRunContext } from '../../context.js'; import { OllamaEmbeddingOptions } from './llm.js'; import '../../errors.js'; import '../../internals/types.js'; import '../../internals/helpers/guards.js'; import '../../internals/serializable.js'; import '../../cache/base.js'; import 'promise-based-task'; import '../../internals/helpers/promise.js'; import '../../llms/llm.js'; declare class OllamaChatLLMOutput extends ChatLLMOutput { readonly results: ChatResponse[]; constructor(response: ChatResponse); get messages(): BaseMessage[]; getTextContent(): string; get finalResult(): Readonly; merge(other: OllamaChatLLMOutput): void; toString(): string; createSnapshot(): { results: ChatResponse[]; }; loadSnapshot(snapshot: ReturnType): void; } interface Input { modelId: string; client?: Ollama; parameters?: Partial; executionOptions?: ExecutionOptions; cache?: LLMCache; } type OllamaChatLLMEvents = ChatLLMGenerateEvents; declare class OllamaChatLLM extends ChatLLM { readonly emitter: Emitter; readonly client: Ollama; readonly parameters: Partial; constructor({ client, modelId, parameters, executionOptions, cache }?: Input); meta(): Promise; embed(input: BaseMessage[][], options?: OllamaEmbeddingOptions): Promise; tokenize(input: BaseMessage[]): Promise; version(): Promise; protected _generate(input: BaseMessage[], options: GenerateOptions, run: GetRunContext): Promise; protected _stream(input: BaseMessage[], options: Partial, run: GetRunContext): AsyncStream; protected prepareParameters(input: BaseMessage[], overrides?: GenerateOptions): Promise; createSnapshot(): { modelId: string; parameters: Partial; executionOptions: ExecutionOptions; client: Ollama; emitter: Emitter>; cache: LLMCache; }; } export { OllamaChatLLM, type OllamaChatLLMEvents, OllamaChatLLMOutput };