"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertStreamMessageToBytes = convertStreamMessageToBytes;
exports.convertBytesToStreamMessage = convertBytesToStreamMessage;
const trackerless_network_1 = require("@streamr/trackerless-network");
const StreamMessageTranslator_1 = require("./StreamMessageTranslator");
function convertStreamMessageToBytes(oldStreamMessage) {
    return trackerless_network_1.StreamMessage.toBinary(StreamMessageTranslator_1.StreamMessageTranslator.toProtobuf(oldStreamMessage));
}
function convertBytesToStreamMessage(bytes) {
    return StreamMessageTranslator_1.StreamMessageTranslator.toClientProtocol(trackerless_network_1.StreamMessage.fromBinary(bytes));
}
//# sourceMappingURL=oldStreamMessageBinaryUtils.js.map