import { ColumnsType } from 'antd/es/table'; import { SelectionType } from './Table'; export type UseTableConfig = { columns: ColumnsType; filters?: Record; fetchUrl?: string; fetchOptions?: RequestInit; selectionType?: SelectionType; simulateDelay?: number; disableRowSelection?: (record: any) => { disabled?: boolean; name?: string; }; hasSettings?: boolean; hasFilter?: boolean; disableAutoFetch?: boolean; dataSource?: any[]; hasBulkSelection?: boolean; }; export declare const useTable: >(useTableConfig: UseTableConfig) => { dataSource: (T & { isSelected: boolean; })[]; isLoading: boolean; hasErrored: boolean; rowSelection: { type: SelectionType; selectedRowKeys: import('react').Key[]; onChange: (newSelectedRowKeys: React.Key[], newSelectedRows: T[]) => void; getCheckboxProps: (record: any) => { disabled?: boolean; name?: string; }; } | undefined; selectedRows: T[]; selectedRowKeys: import('react').Key[]; hasSettings: boolean; hasFilter: boolean; updateDataSource: (newDataSource: T[]) => void; retry: () => void; columns: ColumnsType; error: Error | null; };