@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
15 lines (14 loc) • 678 B
TypeScript
import { type Dispatch, type SetStateAction } from "react";
import type { SortItem } from "./+types.js";
import type { SortRowItem } from "./hooks/use-sort-row-item.js";
import type { Grid } from "../+types.js";
export interface SortManagerContext {
readonly grid: Grid<any>;
readonly sortItems: SortItem[];
readonly setSortItems: Dispatch<SetStateAction<SortItem[]>>;
readonly mode: boolean;
}
export declare const context: import("react").Context<SortManagerContext>;
export declare const useSortManagerCtx: () => SortManagerContext;
export declare const rowContext: import("react").Context<SortRowItem>;
export declare const useSortRowCtx: () => SortRowItem;