import type { AxiosError } from 'axios'; /** * Type guard to narrow an unknown exception to the AxiosError type if it is compatible. * * @param e unknown error * @returns exception cast to AxiosError if it is one */ export declare function isAxiosError(e: unknown): e is AxiosError; /** * Interface describing the structure of an odata error. */ export interface ODataError { '@SAP__common.ExceptionCategory'?: string; code: string; message: string; } /** * Error object that is to be thrown if an OData service responds with an error */ export declare class ODataRequestError extends Error { /** * Helper function to check if a parsed OData response contains an error. * * @param odata odata object * @returns boolean */ static containsError(odata: unknown): boolean; /** * Constructor extracting message and code from the error and putting them into an error message. * * @param responseData response Data */ constructor(responseData: unknown); } //# sourceMappingURL=odata-request-error.d.ts.map