import { type MutableRefObject } from "react";
import type { AgentChatMessage, AgentDetails, AgentStreamMessage } from "../../services/agentService";
export declare function useAgentRunDeltaRouter(input: {
    agent: AgentDetails | undefined;
    messagesRef: MutableRefObject<AgentChatMessage[]>;
    clearHeartbeatMessages: () => void;
    handleContentChunk: (message: AgentStreamMessage, agent: AgentDetails) => void;
    handleToolCall: (message: AgentStreamMessage, agent: AgentDetails) => void;
    handleToolResult: (message: AgentStreamMessage, agent: AgentDetails) => void;
    handleHeartbeatMessage: (message: AgentStreamMessage) => void;
    handleContextUpdate: (contextData: any) => void;
    appendToolUiEvent: (type: string, details?: string, seq?: number | null) => void;
}): (delta: {
    type: string;
    data: any;
    cost: any;
    seq?: number | null;
}) => void;
