@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
10 lines (9 loc) • 576 B
TypeScript
import { type PathBranch, type PathLeaf, type PathProvidedItem } from "@1771technologies/lytenyte-shared";
export declare function useFlattenedTree<T extends PathProvidedItem>(paths: T[], expansions: Record<string, boolean>, expansionDefault: boolean, nonAdjacentPathTrees?: boolean): {
flat: (PathBranch<T> | PathLeaf<T>)[];
nodeToIndex: Map<PathBranch<T> | PathLeaf<T>, number>;
indexToId: Map<number, string>;
allIds: Set<string>;
idToNode: Map<string, PathBranch<T> | PathLeaf<T>>;
root: import("@1771technologies/lytenyte-shared").PathRoot<T>;
};