import { type MutableRefObject, type SetStateAction } from "react";
import type { AgentChatMessage, AgentDetails } from "../../services/agentService";
import type { AgentSessionActions } from "./useAgentSession";
type StateSetter<T> = (next: SetStateAction<T>) => void;
export declare function useAgentLoadErrorHandler(input: {
    messagesRef: MutableRefObject<AgentChatMessage[]>;
    actions: AgentSessionActions;
    setAgent: StateSetter<AgentDetails | undefined>;
    setError: StateSetter<string | null>;
}): (error: any) => void;
export {};
