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 isAgentNotFoundLoadError(error: any): boolean;
export declare function useAgentLoadErrorHandler(input: {
    agentId: string;
    messagesRef: MutableRefObject<AgentChatMessage[]>;
    actions: AgentSessionActions;
    setAgent: StateSetter<AgentDetails | undefined>;
    setError: StateSetter<string | null>;
    onAgentNotFound?: (agentId: string) => void;
}): (error: any) => void;
export {};
