import type { AxiosError } from 'axios'; export type ApiErrorHandled = AxiosError & { apiErrorHandled?: boolean; /** @deprecated use apiErrorHandled */ authErrorHandled?: boolean; }; export declare function isServerError(status: number | undefined): boolean; export declare function isAccessDeniedStatus(status: number | undefined): boolean; /** HTTP status from an Axios error or a thrown Response-like object. */ export declare function getHttpErrorStatus(reason: unknown): number | undefined; export declare function markApiErrorHandled(error: AxiosError): void; /** True when the API client already surfaced a 5xx error via dispatchApiError. */ export declare function isHandledApiError(reason: unknown): boolean; /** * Unmarked 401/403 from the API (or a Response with that status). * Not treated as "handled" so callers can still catch; ErrorBoundary uses this * to show access-denied instead of the client report prompt. */ export declare function isAccessDeniedApiError(reason: unknown): boolean; /** @deprecated use markApiErrorHandled */ export declare const markAuthErrorHandled: typeof markApiErrorHandled; /** @deprecated use isHandledApiError */ export declare const isHandledAuthError: typeof isHandledApiError; /** @deprecated use ApiErrorHandled */ export type AuthErrorHandled = ApiErrorHandled;