import { AxiosError } from 'axios'; import { ServerError } from '../../models'; import { DelegateToFrontedError } from './delegate-to-frontend.error'; /** * Central error handler for calls from bridge. * * Logs the error, then maps the HTTP status to a semantic IntegrationErrorType * and throws a ServerError with status 452 (DELEGATE_TO_FRONTEND_CODE) so the * frontend can show an appropriate message. Unmapped status codes are re-thrown * as-is; errors without any status become a generic 500. */ export declare const throwAndDelegateError: (error: AxiosError | DelegateToFrontedError | ServerError | Error, source: string, apiKey: string | undefined, logMessage?: string, data?: object) => never;