import type { ColumnDef, OnChangeFn, Row, RowSelectionState } from "@tanstack/react-table";
interface UseTableSelectionOptions<TData> {
    enableRowSelection?: boolean | ((row: Row<TData>) => boolean);
    selectedRowKeys?: string[];
    onRowSelect?: (keys: string[], rows: TData[]) => void;
    data: TData[];
    getRowId: (row: TData) => string;
}
export declare const useTableSelection: <TData>({ enableRowSelection, selectedRowKeys, onRowSelect, data, getRowId, }: UseTableSelectionOptions<TData>) => {
    rowSelection: RowSelectionState;
    onRowSelectionChange: OnChangeFn<RowSelectionState>;
    selectionColumn: ColumnDef<TData, unknown> | null;
    enableRowSelection: boolean | ((row: Row<TData>) => boolean);
};
export {};
