export type Node = {
    id: string | number;
    label: string;
    parent: string | number;
};
export type Result<N> = N & {
    children: Result<N>[];
};
export declare function build<N extends Node>(rawList: N[]): Result<N>[];
