"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Decoder = void 0;
const Decoder_1 = require("../compact/Decoder");
const util_1 = require("@jsonjoy.com/json-pack/lib/msgpack/util");
class Decoder {
    constructor() {
        this.decoder = new Decoder_1.Decoder();
    }
    decode(uint8) {
        const json = util_1.decoder.read(uint8);
        const doc = this.decoder.decode(json);
        return doc;
    }
}
exports.Decoder = Decoder;
//# sourceMappingURL=Decoder.js.map