import { Encoder as CompactEncoder } from '../compact/Encoder';
import { encoderFull } from '@jsonjoy.com/json-pack/lib/msgpack/util';
export class Encoder {
    encoder = new CompactEncoder();
    encode(doc) {
        const json = this.encoder.encode(doc);
        const uint8 = encoderFull.encode(json);
        return uint8;
    }
}
//# sourceMappingURL=Encoder.js.map