/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { Tree as TreeSimple } from "../simple-tree";
// eslint-disable-next-line import/no-internal-modules
import { getClassSchema } from "../simple-tree/proxies";
import { getFlexSchema } from "./toFlexSchema";
/**
 * The `Tree` object holds various functions for analyzing {@link NodeBase}s.
 * @beta
 */
export const nodeApi = {
    ...TreeSimple,
    is: (value, schema) => {
        return TreeSimple.is(value, getFlexSchema(schema));
    },
    schema(node) {
        return getClassSchema(TreeSimple.schema(node));
    },
};
//# sourceMappingURL=treeApi.js.map