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 useAgentToolResultHandler(input: {
    agent: AgentDetails | undefined;
    actions: AgentSessionActions;
    messagesRef: MutableRefObject<AgentChatMessage[]>;
    shouldCreateNewMessageRef: MutableRefObject<boolean>;
    appendToolUiEvent: (type: string, detail?: string | null, seq?: number | null) => void;
}): (message: AgentStreamMessage, agentData?: AgentDetails) => void;
export {};
