function isTurnInsideRollbackRange(turn, range) {
    return turn.seqRange.startSeqInclusive >= range.startSeqInclusive
        && turn.seqRange.endSeqInclusive <= range.endSeqInclusive;
}
export function excludeRolledBackTurns(params) {
    if (params.rollbackRanges.length === 0)
        return [...params.turns];
    return params.turns.filter((turn) => !params.rollbackRanges.some((range) => isTurnInsideRollbackRange(turn, range)));
}
//# sourceMappingURL=rollbacks.js.map