@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
16 lines (15 loc) • 536 B
TypeScript
import type { Grid } from "../../+types";
import type { SortItem } from "../+types.js";
export interface UseSortManagerArgs<T> {
readonly grid: Grid<T>;
readonly pivotMode?: boolean;
}
export declare function useSortManager<T>({ grid, pivotMode }: UseSortManagerArgs<T>): {
rootProps: {
sortItems: SortItem[];
setSortItems: import("react").Dispatch<import("react").SetStateAction<SortItem[]>>;
mode: boolean;
grid: Grid<T>;
};
rows: import("./use-sort-row-item.js").SortRowItem[];
};