import { BaseLLMOutput, ExecutionOptions, LLMCache, LLMMeta, EmbeddingOptions, EmbeddingOutput, BaseLLMTokenizeOutput, GenerateOptions, StreamGenerateOptions, AsyncStream, BaseLLMEvents } from '../../llms/base.js'; import { LLMEvents, LLM, LLMInput } from '../../llms/llm.js'; import { GetRunContext } from '../../context.js'; import { E as Emitter } from '../../emitter-l0W9gC1A.js'; import { VertexAI, BaseModelParams } from '@google-cloud/vertexai'; 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'; interface VertexAILLMChunk { text: string; metadata: Record; } declare class VertexAILLMOutput extends BaseLLMOutput { readonly chunks: VertexAILLMChunk[]; constructor(chunk: VertexAILLMChunk); merge(other: VertexAILLMOutput): void; getTextContent(): string; toString(): string; createSnapshot(): { chunks: VertexAILLMChunk[]; }; loadSnapshot(snapshot: ReturnType): void; } interface VertexAILLMInput { modelId: string; project: string; location: string; client?: VertexAI; executionOptions?: ExecutionOptions; cache?: LLMCache; parameters?: BaseModelParams; } type VertexAILLMEvents = LLMEvents; declare class VertexAILLM extends LLM { protected readonly input: VertexAILLMInput; readonly emitter: Emitter; protected client: VertexAI; protected parameters?: BaseModelParams; constructor(input: VertexAILLMInput); meta(): Promise; embed(input: LLMInput[], options?: EmbeddingOptions): Promise; tokenize(input: LLMInput): Promise; protected _generate(input: LLMInput, options: GenerateOptions, run: GetRunContext): Promise; protected _stream(input: LLMInput, options: Partial, run: GetRunContext): AsyncStream; createSnapshot(): { input: VertexAILLMInput; client: VertexAI; parameters: BaseModelParams | undefined; modelId: string; executionOptions: ExecutionOptions; emitter: Emitter>; cache: LLMCache; }; loadSnapshot({ input, ...snapshot }: ReturnType): void; } export { VertexAILLM, type VertexAILLMEvents, type VertexAILLMInput, VertexAILLMOutput };