import { type SetStateAction } from "react";
import type { AgentChatMessage, AgentDetails } from "../../services/agentService";
type SessionActions = {
    completeOpenAssistantMessages: () => void;
    patchRunState: (patch: {
        isAgentThinking?: boolean;
        isConnecting?: boolean;
        isSubmitting?: boolean;
        isWaitingForResponse?: boolean;
        lastStatusReason?: string | null;
    }) => void;
};
export declare function useAgentSettleCompletedRun(input: {
    currentRunIdRef: {
        current: string | null;
    };
    lastSettledRunIdRef: {
        current: string | null;
    };
    messagesRef: {
        current: AgentChatMessage[];
    };
    clearStopGuard: () => void;
    setError: (error: string | null) => void;
    clearHeartbeatMessages: () => void;
    setAgent: (nextAgent: SetStateAction<AgentDetails | undefined>) => void;
    isWaitingRef: {
        current: boolean;
    };
    shouldCreateNewMessageRef: {
        current: boolean;
    };
    sessionActions: SessionActions;
}): (finalStatus?: "completed" | "cancelled", runId?: string | null) => void;
export {};
