import { ErrorState } from '../common/errorStates'; import { ChatMode } from '@d-id/client-sdk'; export interface ErrorData { url?: string; options?: { method: string; }; } interface ErrorHandlerCallbacks { onError?: (error: Error, errorData?: ErrorData) => void; updateErrorState: (errorState: ErrorState) => void; changeMode: (mode: ChatMode) => void; } export declare function handleAgentError(error: Error, errorData: ErrorData | undefined, callbacks: ErrorHandlerCallbacks, currentChatMode: ChatMode): void; export {};