import { type SetStateAction } from "react";
import type { AgentChatMessage, AgentDetails } from "../../services/agentService";
type SessionActions = {
    armStopGuard: () => void;
    completeOpenStreamingMessages: () => void;
    replaceQueuedPrompts: (prompts: []) => void;
};
export declare function useAgentStopCommand(input: {
    readOnly: boolean;
    agentId: string;
    armStopGuard: () => void;
    setIsWaitingForResponse: (next: boolean) => void;
    isWaitingRef: {
        current: boolean;
    };
    setIsConnecting: (next: boolean) => void;
    setIsSubmitting: (next: boolean) => void;
    setAgent: (nextAgent: SetStateAction<AgentDetails | undefined>) => void;
    shouldCreateNewMessage: {
        current: boolean;
    };
    setIsAgentThinking: (next: boolean) => void;
    messagesRef: {
        current: AgentChatMessage[];
    };
    sessionActions: SessionActions;
}): () => Promise<void>;
export {};
