/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { Delta, rootFieldKeySymbol, } from "../tree";
export function initializeForest(forest, content) {
    // TODO: maybe assert forest is empty?
    const insert = { type: Delta.MarkType.Insert, content };
    forest.applyDelta(new Map([[rootFieldKeySymbol, [insert]]]));
}
export function isFieldLocation(range) {
    return typeof range === "object";
}
//# sourceMappingURL=editableForest.js.map