import { type MutableRefObject } from "react";
import type { AgentChatMessage, AgentDetails } from "../../services/agentService";
import type { AgentSessionActions } from "./useAgentSession";
export declare function useAgentUserMessageSocketHandler(input: {
    agent: AgentDetails | undefined;
    messagesRef: MutableRefObject<AgentChatMessage[]>;
    seenMessageIdsRef: MutableRefObject<Set<string>>;
    actions: AgentSessionActions;
}): (messageType: string, payload: any) => boolean;
