import { RowSelectionState, OnChangeFn } from "@tanstack/react-table"; import { IItem } from "../types"; export type TUseTableRowSelectionReturn = { selectedItems: TItem[]; rowSelection: RowSelectionState; onRowSelectionChange: OnChangeFn; }; declare const useTableRowSelection: (items: TItem[], selectedItemsProp?: TItem[] | undefined, onRowSelectionChangeProp?: ((selectedItems: TItem[]) => void) | undefined) => TUseTableRowSelectionReturn; export default useTableRowSelection;