import * as React from 'react'; import { SortOrder, TableColumn } from '../types'; type ColumnsHook = { tableColumns: TableColumn[]; draggingColumnId: string; handleDragStart: (e: React.DragEvent) => void; handleDragEnter: (e: React.DragEvent) => void; handleDragOver: (e: React.DragEvent) => void; handleDragLeave: (e: React.DragEvent) => void; handleDragEnd: (e: React.DragEvent) => void; defaultSortDirection: SortOrder; defaultSortColumn: TableColumn; }; declare function useColumns(columns: TableColumn[], onColumnOrderChange: (nextOrder: TableColumn[]) => void, defaultSortFieldId: string | number | null | undefined, defaultSortAsc: boolean): ColumnsHook; export default useColumns;