/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { FieldKey } from "../schema-stored/index.js";
import { NodeData } from "./types.js";
/**
 * This modules provides a simple in memory tree format.
 */
/**
 * Simple in memory tree representation based on Maps.
 * MapTrees should not store empty fields.
 * @internal
 */
export interface MapTree extends NodeData {
    fields: Map<FieldKey, MapTree[]>;
}
/**
 * Get a field from `node`, optionally modifying the tree to create it if missing.
 */
export declare function getMapTreeField(node: MapTree, key: FieldKey, createIfMissing: boolean): MapTree[];
//# sourceMappingURL=mapTree.d.ts.map