import { FetchResponse, IApiValidationError, IFetchApiFailure, IFetchApiResponse } from "./core"; import { CustomError } from "../customErrors"; /** The validation status code */ export declare const validationStatusCode = 422; /** Helper function to indicate if the error is a FetchApiError */ export declare function isFetchApiError(error: any): error is FetchApiError; /** Indicates a Fetch Api error */ export declare class FetchApiError extends CustomError implements IFetchApiFailure { private __typename__; constructor(message: string, response: IFetchApiResponse); text: string | undefined; json: any; validations: IApiValidationError[] | undefined; response: FetchResponse; }