import { Agent, AgentOutputType, StreamedRunResult } from '@openai/agents';
import { MessageEventDetails, ReasoningEventDetails, ToolCallLifecycleMetadata } from '../hooks/useChatAgent.types';
export interface StreamResponseHandlers {
    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>;
}
export declare const streamResponse: (response: StreamedRunResult<unknown, Agent<unknown, AgentOutputType>>, handlers: StreamResponseHandlers) => Promise<void>;
//# sourceMappingURL=streamResponse.d.ts.map