/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { type CountTokensParameters, CountTokensResponse, type EmbedContentParameters, EmbedContentResponse, type GenerateContentParameters, GenerateContentResponse } from '@google/genai'; import { Config } from '../config/config.js'; import { type ContentGenerator } from './contentGenerator.js'; /** * A decorator that wraps a ContentGenerator to add logging to API calls. */ export declare class LoggingContentGenerator implements ContentGenerator { private readonly wrapped; private readonly config; constructor(wrapped: ContentGenerator, config: Config); getWrapped(): ContentGenerator; private logApiRequest; private _logApiResponse; private static extractFinishReasons; private _logApiError; generateContent(req: GenerateContentParameters, userPromptId: string): Promise; generateContentStream(req: GenerateContentParameters, userPromptId: string): Promise>; private loggingStreamWrapper; countTokens(req: CountTokensParameters): Promise; embedContent(req: EmbedContentParameters): Promise; }