/** * Custom HttpClient for cases when is not possible to use the Angular's HttpClient */ export declare class CustomHttpClient { private static readonly _responseFormatterMap; /** * Executes a Http Get * @param url Url to execute the Get on * @param init Optional additional configs * @returns Whether a Promise on request success or an error in request fail */ static get(url: string, init?: RequestInit): Promise; /** * Executes a Http Post * @param url Url to execute the Post on * @param body Info to send to server on Post * @param init Optional additional configs * @returns Whether a Promise on request success or an error in request fail */ static post(url: string, body: any, init?: RequestInit): Promise; /** * Intercepts the original request to add a required header for Senior in case of a internal request * @param url Url from the original request * @param originalReq Configs from the original request * @returns Whether a Promise if the request was made successfully or an error */ private static _interceptRequest; /** * Formats the request response to an object or {} * @param response The response to be formatted * @returns Whether a Promise if the response status is in the range 200-299 an error */ private static _formatResponse; }