"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapBody = wrapBody;
const _1 = require("../Class/$");
function wrapBody(_body, system) {
    const body = new (class Body extends _1.$ {
        constructor() {
            super(...arguments);
            this.__ = ['BO'];
        }
        async json() {
            return _body.json();
        }
        async text() {
            return _body.text();
        }
        async blob() {
            return _body.blob();
        }
        async raw() {
            return _body;
        }
        async arrayBuffer() {
            return _body.arrayBuffer();
        }
    })(system);
    return body;
}
//# sourceMappingURL=Body.js.map