import { HttpResponse } from '../client/HttpResponse'; import { JsonErrorMapper } from './ResponseJsonHandler'; /** * A {@link FetchResponseHandler} that tries to retrieve the array buffer of the {@link Response} body * - If the {@link Response} body is not a valid array buffer, * {@link HttpResponse#error} will contain a {@link genericError} * - If the HTTP response is successful (status code is 2xx), * {@link HttpResponse#response} will contain the array buffer * - If the HTTP response is not successful (status code is not 2xx), * the {@link JsonErrorMapper} will be executed to return a {@link HttpResponse} * * @param response The {@link Response} to parse * @param jsonErrorMapper The {@link JsonErrorMapper} that will handle the parsed JSON object in case * the HTTP response is not successful (status code is not 2xx) */ export declare const toArrayBufferResponse: (response: Response, jsonErrorMapper?: JsonErrorMapper) => Promise>;