UNPKG

@atlaskit/tree

Version:

A React Component for displaying expandable and sortable tree hierarchies

7 lines (6 loc) 607 B
import { Path, FlattenedTree, ItemId, FlattenedItem } from '../types'; export declare const getFlatItemPath: (flattenedTree: FlattenedTree, sourceIndex: number) => Path; export declare const getSourcePath: (flattenedTree: FlattenedTree, sourceIndex: number) => Path; export declare const getDestinationPath: (flattenedTree: FlattenedTree, sourceIndex: number, destinationIndex: number, level?: number) => Path; export declare const getItemById: (flattenedTree: FlattenedTree, id: ItemId) => FlattenedItem | undefined; export declare const getIndexById: (flattenedTree: FlattenedTree, id: ItemId) => number;