"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.conciseFromCursor = void 0;
const customTree_js_1 = require("./customTree.js");
const createContext_js_1 = require("../createContext.js");
/**
 * Used to read a node cursor as a ConciseTree.
 */
function conciseFromCursor(reader, rootSchema, options) {
    const config = {
        useStoredKeys: false,
        ...options,
    };
    const schemaMap = (0, createContext_js_1.getUnhydratedContext)(rootSchema).schema;
    return conciseFromCursorInner(reader, config, schemaMap);
}
exports.conciseFromCursor = conciseFromCursor;
function conciseFromCursorInner(reader, options, schema) {
    return (0, customTree_js_1.customFromCursor)(reader, options, schema, conciseFromCursorInner);
}
//# sourceMappingURL=conciseTree.js.map