import { type MutableRefObject } from "react";
import type { AgentChatMessage, AgentDetails, AgentStreamMessage } from "../../services/agentService";
import type { useAgentSession } from "./useAgentSession";
type AgentSessionActions = ReturnType<typeof useAgentSession>["actions"];
export declare function useAgentToolCallHandler(input: {
    actions: AgentSessionActions;
    messagesRef: MutableRefObject<AgentChatMessage[]>;
    appendToolUiEvent: (type: string, detail?: string | null, seq?: number | null) => void;
    setIsAgentThinking: (isAgentThinking: boolean) => void;
    createNewStreamMessage: (messageId: string, agentData?: AgentDetails) => AgentChatMessage;
}): (message: AgentStreamMessage, agentData?: AgentDetails) => void;
export {};
