import React from 'react'; import { Column, DataType, TableRow } from './useTable/type'; export declare type RowSelection = { title?: React.ReactNode; width?: number; hideSelectAll?: boolean; renderCell?: (checked: boolean, rowRecord: TableRow, index: number, handleChecked: (checked: boolean) => void) => React.ReactNode; onCurPageSelectedChange?: (rowIds: string[], rows: TableRow[]) => void; onAfterFilterSelectedChange?: (rowIds: string[], rows: TableRow[]) => void; onAllSelectedChange?: (rowIds: string[], rows: TableRow[]) => void; }; declare type Props = { rowSelection?: RowSelection; columns: Column[]; data: T[]; handleBody: React.MutableRefObject[]>; filterBody: React.MutableRefObject[]>; body: React.MutableRefObject[]>; reRenderTable?: (cb: (old: number) => number) => void; }; export default function useTableRowSelection({ rowSelection, columns, data, handleBody, filterBody, body, reRenderTable }: Props): { selectionData: T[]; selectionColumns: Column[]; }; export {};