import { AgentRunContext, ResolvedGenerationResponse } from "../agent-types.js";
import { IncrementalStreamParser } from "../../stream/IncrementalStreamParser.js";
import { StreamTextResult, ToolSet } from "ai";

//#region src/domains/run/agents/streaming/stream-handler.d.ts
declare function handleStreamGeneration(ctx: AgentRunContext, streamResult: StreamTextResult<ToolSet, any>, sessionId: string, contextId: string, hasStructuredOutput: boolean): Promise<ResolvedGenerationResponse>;
declare function processStreamEvents(streamResult: StreamTextResult<ToolSet, any>, parser: IncrementalStreamParser): Promise<void>;
//#endregion
export { handleStreamGeneration, processStreamEvents };