import type { ComponentType, ChangeEvent } from 'react'; import type { Hooks, IdType } from 'react-table'; /** * @example interface TableOptions extends UseCheckboxSelectionOptions {} */ export declare type UseCheckboxSelectionOptions = Partial<{ selectionFieldId: IdType; checkboxSelection: boolean; disableSelectionOnClick: boolean; renderCheckbox: ComponentType<{ onChange?: (e: ChangeEvent) => void; checked?: boolean; title?: string; indeterminate?: boolean; }>; }>; export declare type UseCheckboxSelectionState = Partial<{ lastSelected: { id: IdType; value: boolean; }; checkboxSelectionOptions: Partial<{ disableHiding: boolean; disableResizing: boolean; disableSortBy: boolean; width: number; }>; }>; /** * Checkbox selection, Range selection 모두 지원한다 * @dependOn useRowSelect, useSelectionModel */ export declare const useCheckboxSelection: (hooks: Hooks) => void;