import type { ModelResponse, PartialModelResponse } from "./types.ts"; /** * Manages the accumulation and merging of content deltas for streaming responses */ export declare class StreamAccumulator { #private; /** * Adds a chunk of content deltas to the accumulator */ addPartial(partial: PartialModelResponse): void; /** * Computes the final response from accumulated deltas */ computeResponse(): ModelResponse; /** * Gets the number of accumulated parts */ get size(): number; /** * Checks if the accumulator has any data */ get isEmpty(): boolean; }