/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { GenerateContentResponse, Part } from '@google/genai'; import { LlmResponse } from '../models/llm_response.js'; /** * Aggregates partial streaming responses. * * It aggregates content from partial responses, and generates LlmResponses for * individual (partial) model responses, as well as for aggregated content. */ export declare class StreamingResponseAggregator { private readonly isProgressiveMode; private usageMetadata?; private groundingMetadata?; private citationMetadata?; private response?; private finishReason?; private lastThoughtSignature; private readonly strategy; constructor(isProgressiveMode?: boolean); processResponse(response: GenerateContentResponse): AsyncGenerator; close(): LlmResponse | undefined; } /** * Checks if a response part has no meaningful content (empty text, no tool calls, etc.) */ export declare function isEmptyContentPart(part: Part): boolean;