import { GenerateOptions, LLMMeta, ExecutionOptions, LLMCache, EmbeddingOptions, EmbeddingOutput, BaseLLMTokenizeOutput, AsyncStream, BaseLLMEvents } from '../../../llms/base.js'; import { BaseChatModelCallOptions, BaseChatModel } from '@langchain/core/language_models/chat_models'; import { ChatLLMOutput, ChatLLMGenerateEvents, ChatLLM } from '../../../llms/chat.js'; import { BaseMessage } from '../../../llms/primitives/message.js'; import { BaseMessageChunk, BaseMessage as BaseMessage$1, ChatMessage } from '@langchain/core/messages'; import { E as Emitter } from '../../../emitter-l0W9gC1A.js'; import { GetRunContext } from '../../../context.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'; declare class LangChainChatLLMOutput extends ChatLLMOutput { messages: BaseMessage[]; meta: Record; constructor(messages: BaseMessage[], meta?: Record); merge(other: LangChainChatLLMOutput): void; getTextContent(): string; toString(): string; createSnapshot(): { messages: BaseMessage[]; meta: Record; }; loadSnapshot(snapshot: ReturnType): void; } type LangChainChatLLMParameters = Record; type MergedCallOptions = { lc: T; } & GenerateOptions; type LangChainChatLLMEvents = ChatLLMGenerateEvents; declare class LangChainChatLLM extends ChatLLM> { readonly lcLLM: BaseChatModel; protected modelMeta?: LLMMeta | undefined; readonly emitter: Emitter; readonly parameters: any; constructor(lcLLM: BaseChatModel, modelMeta?: LLMMeta | undefined, executionOptions?: ExecutionOptions, cache?: LLMCache); meta(): Promise; embed(input: BaseMessage[][], options?: EmbeddingOptions): Promise; tokenize(input: BaseMessage[]): Promise; protected get mappers(): { toLCMessage(message: BaseMessage): BaseMessage$1; fromLCMessage(message: BaseMessage$1 | ChatMessage): BaseMessage; }; protected _generate(input: BaseMessage[], options: MergedCallOptions, run: GetRunContext): Promise; protected _stream(input: BaseMessage[], options: MergedCallOptions, run: GetRunContext): AsyncStream; createSnapshot(): { modelId: string; modelMeta: LLMMeta | undefined; parameters: any; executionOptions: ExecutionOptions; lcLLM: string; emitter: Emitter>; cache: LLMCache; }; } export { LangChainChatLLM, type LangChainChatLLMEvents, LangChainChatLLMOutput, type LangChainChatLLMParameters };