/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { CountTokensParameters, CountTokensResponse, EmbedContentParameters, EmbedContentResponse, GenerateContentParameters, GenerateContentResponse } from '@google/genai'; import type { ContentGenerator, ContentGeneratorConfig } from '../contentGenerator.js'; /** * A wrapper for GoogleGenAI that implements the ContentGenerator interface. */ export declare class GeminiContentGenerator implements ContentGenerator { private readonly googleGenAI; private readonly contentGeneratorConfig?; constructor(options: { apiKey?: string; vertexai?: boolean; httpOptions?: { headers: Record; }; }, contentGeneratorConfig?: ContentGeneratorConfig); private buildGenerateContentConfig; private buildThinkingConfig; generateContent(request: GenerateContentParameters, _userPromptId: string): Promise; generateContentStream(request: GenerateContentParameters, _userPromptId: string): Promise>; countTokens(request: CountTokensParameters): Promise; embedContent(request: EmbedContentParameters): Promise; useSummarizedThinking(): boolean; }