/** * HTTP request utility methods. * * @export * @abstract * @class Http */ export declare abstract class Http { /** * Use fetch to get. * * @static * @param {string} url Url to get. * @return {Promise} */ static get(url: string): Promise; /** * Use fetch to post. * * @static * @param {string} url Url to post. * @param {object} body Post body. * @return {Promise} */ static post(url: string, body: object): Promise; /** * Check if a status is Ok (2xx). * * @static * @param {number} status Status to check. * @return {boolean} If is 2xx. */ static ok(status: number): boolean; }