import { type MutableRefObject, type SetStateAction } from "react";
import type { Agent, AgentDetails, StartAgentResponse } from "../../services/agentService";
type StateSetter<T> = (next: SetStateAction<T>) => void;
export declare function useAgentSubmitResponseHandler(input: {
    agentStub: Agent;
    isWaitingRef: MutableRefObject<boolean>;
    onAgentUpdate?: (updates: Partial<Agent>) => void;
    clearSuppressedQueuedPrompt: (token: string | null) => void;
    removeOptimisticTranscriptMessage: (messageId: string) => void;
    setAgent: StateSetter<AgentDetails | undefined>;
    setIsWaitingForResponse: (isWaiting: boolean) => void;
    setIsConnecting: (isConnecting: boolean) => void;
    setIsAgentThinking: (isThinking: boolean) => void;
    setLastRunStatusReason: (reason: string | null) => void;
}): (input: {
    response: StartAgentResponse;
    tempMessageId: string;
    suppressedQueuedPromptToken: string | null;
}) => void;
export {};
