/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { isAttach, isDetach, splitMark } from "./utils.js";
export function isMoveMark(effect) {
    return isAttach(effect) || isDetach(effect);
}
export function getAttach(effect) {
    switch (effect.type) {
        case "Insert":
            return effect;
        default:
            return undefined;
    }
}
export function splitMarkForMoveEffects(mark, getLength) {
    const length = getLength(mark);
    return length < mark.count ? splitMark(mark, length) : [mark];
}
//# sourceMappingURL=moveEffectTable.js.map