/**
 * OpenAI Agent streaming helpers.
 *
 * These utilities are OpenAI specific, so they live inside the OpenAI plugin bundle
 * and can be imported by consumers who choose to use the bundled chat agent helpers.
 */
import type { Agent, AgentOutputType, StreamedRunResult } from '@openai/agents';
import type { MessageEventDetails, ReasoningEventDetails, ToolCallLifecycleMetadata } from '../../hooks/useChatAgent/useChatAgent.types';
export interface OpenAIStreamResponseHandlers {
    onOutputTextDelta: (delta: string) => Promise<void>;
    onMessageOutputCreated: (finalOutput: string) => Promise<void>;
    onToolCall: (name: string, args: string, metadata?: ToolCallLifecycleMetadata) => Promise<void>;
    onToolOutput: (name: string, output: string, metadata?: ToolCallLifecycleMetadata) => Promise<void>;
    onReasoningEvent?: (event: ReasoningEventDetails) => Promise<void>;
    onMessageEvent?: (event: MessageEventDetails) => Promise<void>;
    onFinalOutputAccessed?: (finalOutput: string) => Promise<void>;
}
export declare const streamOpenAIResponse: (response: StreamedRunResult<unknown, Agent<unknown, AgentOutputType>>, handlers: OpenAIStreamResponseHandlers) => Promise<void>;
//# sourceMappingURL=streamResponse.d.ts.map