import { type MutableRefObject } from "react";
import type { AgentChatMessage, AgentDetails } from "../../services/agentService";
export declare function useAgentRunDeltaSocketHandler(input: {
    agent: AgentDetails | undefined;
    isStoppingRef: MutableRefObject<boolean>;
    currentRunIdRef: MutableRefObject<string | null>;
    lastResyncedMessageIdsRef: MutableRefObject<Set<string>>;
    messagesRef: MutableRefObject<AgentChatMessage[]>;
    lastNonHeartbeatUpdateAtRef: MutableRefObject<number>;
    normalizeRunId: (value: unknown) => string | null;
    noteMissingRunId: (source: string) => void;
    appendToolUiEvent: (type: string, detail?: string | null, seq?: number | null) => void;
    acceptRunSequenceFrame: (input: {
        eventName: "agent:run:delta" | "agent:run:status";
        runId: string | undefined;
        seq: number | undefined;
    }) => boolean;
    routeRunDelta: (input: {
        type: string;
        data: any;
        cost: any;
        seq: number;
    }) => void;
}): (messageType: string, payload: any) => boolean;
