import type { Entity, QueryResult, Trait } from 'koota';
export interface TreeNode {
    entity: Entity;
    parent?: TreeNode;
    children?: TreeNode[];
}
/**
 * Creates a tree representing parent child / relationships from a set of frames.
 */
export declare const buildTreeNodes: (entities: QueryResult<[Trait]>) => {
    rootNodes: TreeNode[];
    nodeMap: Record<string, TreeNode | undefined>;
};
