UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

15 lines (14 loc) 647 B
import type { RowNode } from "@1771technologies/lytenyte-shared"; export interface UseFlattenedPieceParams<T> { leafsTop: RowNode<T>[]; leafsCenter: RowNode<T>[]; leafsBot: RowNode<T>[]; groupFlat: RowNode<T>[] | null; centerIndices: number[]; } export declare function useFlattenedPiece<T>({ leafsTop, leafsCenter, leafsBot, groupFlat, centerIndices, }: UseFlattenedPieceParams<T>): { flatten: RowNode<T>[]; rowByIdRef: import("react").RefObject<Map<string, RowNode<T>>>; rowByIndexRef: import("react").RefObject<Map<number, RowNode<T>>>; rowIdToRowIndexRef: import("react").RefObject<Map<string, number>>; };