"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFieldLocation = exports.initializeForest = void 0;
const tree_1 = require("../tree");
function initializeForest(forest, content) {
    // TODO: maybe assert forest is empty?
    const insert = { type: tree_1.Delta.MarkType.Insert, content };
    forest.applyDelta(new Map([[tree_1.rootFieldKey, [insert]]]));
}
exports.initializeForest = initializeForest;
function isFieldLocation(range) {
    return typeof range === "object";
}
exports.isFieldLocation = isFieldLocation;
//# sourceMappingURL=editableForest.js.map