import * as http from 'http';
import { ServerResponse } from 'http';

/**
 * fetch data from a JSON:API endpoint
 * @param apiUrl the api url for the JSON:API endpoint
 * @param requestInit fetch initialization object
 * @param _res response object
 * @returns a promise containing the data for the JSON:API response
 */
declare const defaultFetch: (apiUrl: RequestInfo, requestInit?: {}, _res?: boolean | ServerResponse<http.IncomingMessage> | undefined) => Promise<Response>;

export { defaultFetch as default };
