import { type MutableRefObject } from "react";
import type { AgentChatMessage, AgentDetails } from "../../services/agentService";
import type { AgentSessionActions } from "./useAgentSession";
export declare function useAgentRunResyncSocketHandler(input: {
    agent: AgentDetails | undefined;
    actions: AgentSessionActions;
    messagesRef: MutableRefObject<AgentChatMessage[]>;
    currentRunIdRef: MutableRefObject<string | null>;
    lastSeqRef: MutableRefObject<number>;
    lastResyncedMessageIdsRef: MutableRefObject<Set<string>>;
    normalizeRunId: (value: unknown) => string | null;
    noteMissingRunId: (source: string) => void;
    appendToolUiEvent: (type: string, detail?: string | null, seq?: number | null) => void;
    createNewStreamMessage: (messageId: string, agentData?: AgentDetails) => AgentChatMessage;
}): (messageType: string, payload: any) => boolean;
