"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertStreamMessageToMessage = void 0;
const convertStreamMessageToMessage = (msg) => {
    return {
        content: msg.getParsedContent(),
        streamId: msg.getStreamId(),
        streamPartition: msg.getStreamPartition(),
        timestamp: msg.getTimestamp(),
        sequenceNumber: msg.getSequenceNumber(),
        signature: msg.signature,
        publisherId: msg.getPublisherId(),
        msgChainId: msg.getMsgChainId(),
        // @ts-expect-error 'streamMessage' does not exist in type 'Message'
        streamMessage: msg,
    };
};
exports.convertStreamMessageToMessage = convertStreamMessageToMessage;
//# sourceMappingURL=Message.js.map