UNPKG

adizen-tanstack-table

Version:

Enhanced DataTable with TanStack Table

9 lines (8 loc) 553 B
import { type ServerSideConfig, type ExportProgress, type BatchedExportConfig } from "../types"; export declare function useBatchedExport<T>(serverSideConfig: ServerSideConfig<T> | undefined, batchConfig?: BatchedExportConfig): { progress: ExportProgress; shouldUseBatchedExport: (totalCount: number) => boolean; exportInBatches: (totalCount: number, filters: any, sorting: any, dateRange: any, onBatchComplete?: (batchData: T[], batchNumber: number) => void) => Promise<T[]>; cancelExport: () => void; resetProgress: () => void; };