UNPKG

react-select-items

Version:
19 lines (18 loc) 744 B
import { SelectionOptions } from './types'; interface SelectStore { selectedIndexes: Set<number>; setSelectedIndexes: (indexes: Set<number>) => void; focusedIndex: number; setFocusedIndex: (index: number) => void; selectionOptions: Required<SelectionOptions>; setSelectionOptions: (options: SelectionOptions) => void; dragBoxElement: HTMLDivElement | null; setDragBoxElement: (element: HTMLDivElement | null) => void; isDragging: boolean; setIsDragging: (isDragging: boolean) => void; } declare const SelectProvider: ({ children }: { children: React.ReactNode; }) => import("react/jsx-runtime").JSX.Element; declare const useSelectStore: () => SelectStore; export { SelectProvider, useSelectStore };