import { BaseLLMOutput, LLMMeta, ExecutionOptions, LLMCache, EmbeddingOptions, EmbeddingOutput, BaseLLMTokenizeOutput, GenerateOptions, StreamGenerateOptions, AsyncStream, BaseLLMEvents } from '../../../llms/base.js'; import { LLMEvents, LLM, LLMInput } from '../../../llms/llm.js'; import { BaseLLM } from '@langchain/core/language_models/llms'; 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 LangChainLLMOutput extends BaseLLMOutput { text: string; readonly meta: Record; constructor(text: string, meta: Record); merge(other: LangChainLLMOutput): void; getTextContent(): string; toString(): string; createSnapshot(): { text: string; meta: Record; }; loadSnapshot(snapshot: ReturnType): void; } type LangChainLLMEvents = LLMEvents; declare class LangChainLLM extends LLM { readonly lcLLM: BaseLLM; private modelMeta?; readonly emitter: Emitter; protected readonly parameters: any; constructor(lcLLM: BaseLLM, modelMeta?: LLMMeta | undefined, executionOptions?: ExecutionOptions, cache?: LLMCache); meta(): Promise; embed(input: LLMInput[], options?: EmbeddingOptions): Promise; tokenize(input: LLMInput): Promise; protected _generate(input: LLMInput, _options: Partial, run: GetRunContext): Promise; protected _stream(input: string, _options: StreamGenerateOptions | undefined, run: GetRunContext): AsyncStream; createSnapshot(): { modelId: string; modelMeta: LLMMeta | undefined; parameters: any; executionOptions: ExecutionOptions; lcLLM: string; emitter: Emitter>; cache: LLMCache; }; } export { LangChainLLM, type LangChainLLMEvents, LangChainLLMOutput };