import { PeekEntity } from '../types/schema';
export interface TreeNode {
    entity: PeekEntity;
    children: TreeNode[];
    depth: number;
}
/**
 * Build a tree from a flat list of entities using parent_id.
 * Entities with no parent_id (or parent_id <= 0) are roots.
 * Orphans (entities whose parent is missing from the list) become roots.
 */
export declare function buildEntityTree(entities: PeekEntity[]): TreeNode[];
export declare function EntityListPage(): import("react/jsx-runtime").JSX.Element;
