import { TreeNode } from './WorldTree';
export declare class NodeMap {
    static readonly COMPOUND_ID_CHAR = "~";
    private subtreeRoot;
    private all;
    instances: {
        [id: string]: {
            [id: string]: TreeNode;
        };
    };
    get nodeCount(): number;
    constructor(subtreeRoot: TreeNode);
    addNode(node: TreeNode): boolean;
    removeNode(node: TreeNode): boolean;
    getNodeById(id: string): TreeNode[];
    getSubtreeById(id: string): TreeNode;
    hasId(id: string): boolean;
    private registerInstance;
    private registerNode;
    purge(): void;
}
