import { BaseLLMOutput, LLMMeta, ExecutionOptions, LLMCache, EmbeddingOptions, EmbeddingOutput, BaseLLMTokenizeOutput, GenerateOptions, StreamGenerateOptions, AsyncStream, BaseLLMEvents } from '../../../llms/base.cjs'; import { LLMEvents, LLM, LLMInput } from '../../../llms/llm.cjs'; import { BaseLLM } from '@langchain/core/language_models/llms'; 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 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 };