import { DataSource } from '../Context/TableContext'; interface UseTableDataSourceProps { dataSource?: DataSource; pageSize?: number; initialData?: TData[]; sort?: { columnId: string; direction: 'asc' | 'desc'; }; filter?: string; } export interface DataSourceState { data: TData[]; currentPage: number; hasMore: boolean; totalCount?: number; isLoading: boolean; isFetchingMore: boolean; error?: Error; } interface UseTableDataSourceReturn { data: TData[]; currentPage: number; hasMore: boolean; totalCount?: number; isLoading: boolean; isFetchingMore: boolean; loadNextPage: () => Promise; resetAndFetch: () => Promise; error?: Error; } export declare const useTableDataSource: (props: UseTableDataSourceProps) => UseTableDataSourceReturn; export {};