import { getStreamErrorMessage } from "./getStreamErrorMessage.js";
export function getStreamEndResult(event) {
    const e = event;
    if (e.type === 'error' || e.event === 'error' || e.error) {
        return { status: 'error', error: new Error(getStreamErrorMessage(e)) };
    }
    return { status: 'done' };
}
//# sourceMappingURL=getStreamEndResult.js.map
