import { type RowData, type Table_Internal, type TableFeatures, type TableFeature, type Cell, type CellData, type Header } from '@tanstack/react-table'; import type { DataTableDownloadHeaderContext, DataTableDownloadSlotProps, DownloadDataFeatureConstructors } from './download-types.js'; /** * DataTable slot definition for the Download action. * Columns may be optionally excluded from downloading by their IDs. * @public */ export declare function DataTableDownload(props: DataTableDownloadSlotProps): null; /** * Helper function to extract the header nesting segments for a leaf column, from outermost group to leaf. * Falls back to the header id when the column header is a custom renderer or undefined. * @internal */ export declare function header_getDownloadHeaderPath(header: Header): string[]; export declare function header_getDownloadString(header: Header): string; /** * Helper function to extract the cell value as a string for CSV download, with special handling for dates, meter bars, and objects. * @internal */ export declare function cell_getDownloadString(cell: Cell): string; /** * Helper function to trigger the download of all table data as CSV, excluding built-in and sparkline columns. * @internal */ export declare function table_downloadAllData(table: Table_Internal, excludeColumns?: string[], formatDownloadHeader?: (context: DataTableDownloadHeaderContext) => string | undefined, fileName?: string | ((subset: 'all' | 'page' | 'selected') => string), onDownloadEnd?: () => void): void; /** * Helper function to trigger the download of the current page's data as CSV, excluding built-in and sparkline columns. * @internal */ export declare function table_downloadPageData(table: Table_Internal, excludeColumns?: string[], formatDownloadHeader?: (context: DataTableDownloadHeaderContext) => string | undefined, fileName?: string | ((subset: 'all' | 'page' | 'selected') => string), onDownloadEnd?: () => void): void; /** * Helper function to trigger the download of the currently selected rows' data as CSV, excluding built-in and sparkline columns. * @internal */ export declare function table_downloadSelectedData(table: Table_Internal, excludeColumns?: string[], formatDownloadHeader?: (context: DataTableDownloadHeaderContext) => string | undefined, fileName?: string | ((subset: 'all' | 'page' | 'selected') => string), onDownloadEnd?: () => void): void; /** * Constructs the column visibility feature for the table, * including API implementations and prototype assignments. * @internal */ export declare function constructDownloadDataFeature(): TableFeature; /** * Additional feature implementation for downloading data. * @internal */ export declare const DataTableDownloadDataFeature: TableFeature; //# sourceMappingURL=Download.d.ts.map