"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStreamEndResult = getStreamEndResult;
const getStreamErrorMessage_1 = require("./getStreamErrorMessage.js");
function getStreamEndResult(event) {
    const e = event;
    if (e.type === 'error' || e.event === 'error' || e.error) {
        return { status: 'error', error: new Error((0, getStreamErrorMessage_1.getStreamErrorMessage)(e)) };
    }
    return { status: 'done' };
}
//# sourceMappingURL=getStreamEndResult.js.map
