import type { AgentDetails } from "../../services/agentService";
export declare function useAgentStreamSubscription(input: {
    effectiveIsVisible: boolean;
    editContext?: {
        addSocketMessageListener?: any;
    } | null;
    agentStubId: string;
    agent: AgentDetails | undefined;
    onMessage: (message: any) => void;
    subscribedAgentIdRef: {
        current: string | null;
    };
    seenMessageIdsRef: {
        current: Set<string>;
    };
    lastSeqRef: {
        current: number;
    };
    setIsWaitingForResponse: (next: boolean) => void;
    isWaitingRef: {
        current: boolean;
    };
    shouldCreateNewMessage: {
        current: boolean;
    };
    setIsAgentThinking: (next: boolean) => void;
}): void;
