"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PayloadHTTP = exports.getPayload = void 0;
const initHTTP_1 = require("./initHTTP");
const payload_1 = require("./payload");
var payload_2 = require("./payload");
Object.defineProperty(exports, "getPayload", { enumerable: true, get: function () { return payload_2.getPayload; } });
require('isomorphic-fetch');
class PayloadHTTP extends payload_1.BasePayload {
    async init(options) {
        const payload = await (0, initHTTP_1.initHTTP)(options);
        Object.assign(this, payload);
        return payload;
    }
}
exports.PayloadHTTP = PayloadHTTP;
const payload = new PayloadHTTP();
exports.default = payload;
module.exports = payload;
//# sourceMappingURL=index.js.map