UNPKG

@1771technologies/lytenyte-pro

Version:

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

17 lines (16 loc) 833 B
import { type Dispatch, type RefObject, type SetStateAction } from "react"; import type { API, DataRect, DataRectSplit } from "../types"; export interface ProContext { readonly api: API; readonly excludeMarker: boolean; readonly keepSelection: boolean; readonly cellSelections: DataRect[]; readonly onCellSelectionChange: (rect: DataRect[]) => void; readonly cellSelectionMode: "range" | "multi-range" | "none"; readonly cellSelectionAdditiveRects: DataRectSplit[] | null; readonly setCellSelectionAdditiveRects: Dispatch<SetStateAction<DataRectSplit[] | null>>; readonly cellSelectionIsDeselect: RefObject<boolean>; readonly cellSelectionSplits: DataRectSplit[]; } export declare const ProRootProvider: import("react").Provider<ProContext>; export declare const useProRoot: () => ProContext;