import { GenerateOptions, LLMMeta, ExecutionOptions, LLMCache, EmbeddingOptions, EmbeddingOutput, BaseLLMTokenizeOutput, AsyncStream, BaseLLMEvents } from '../../../llms/base.cjs'; import { BaseChatModelCallOptions, BaseChatModel } from '@langchain/core/language_models/chat_models'; import { ChatLLMOutput, ChatLLMGenerateEvents, ChatLLM } from '../../../llms/chat.cjs'; import { BaseMessage } from '../../../llms/primitives/message.cjs'; import { BaseMessageChunk, BaseMessage as BaseMessage$1, ChatMessage } from '@langchain/core/messages'; import { E as Emitter } from '../../../emitter-BWtGHYn0.cjs'; import { GetRunContext } from '../../../context.cjs'; import '../../../errors.cjs'; import '../../../internals/types.cjs'; import '../../../internals/helpers/guards.cjs'; import '../../../internals/serializable.cjs'; import '../../../cache/base.cjs'; import 'promise-based-task'; import '../../../internals/helpers/promise.cjs'; 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 };