/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
/**
 * @alpha
 */
export class EditBuilder {
    constructor(changeFamily, changeReceiver, anchorSet) {
        this.changeFamily = changeFamily;
        this.changeReceiver = changeReceiver;
        this.anchorSet = anchorSet;
    }
    /**
     * Subclasses add editing methods which call this with their generated edits.
     *
     * @sealed
     */
    applyChange(change) {
        this.changeFamily.rebaser.rebaseAnchors(this.anchorSet, change);
        this.changeReceiver(change);
    }
    enterTransaction() { }
    exitTransaction() { }
}
//# sourceMappingURL=editBuilder.js.map