export interface DataTableExportOptions { /** * Only export selected rows. */ selectionOnly?: boolean; /** * Fields to export. If not provided, all fields from first row are used. */ fields?: string[]; /** * Column headers for export (maps field → header label). */ headers?: Record; /** * CSV separator character. * @default ',' */ separator?: string; /** * File name for download (without extension). * @default 'download' */ fileName?: string; /** * Custom export function. When provided, it is called instead of the default CSV download. * Receives the resolved data array and fields list. */ exportFunction?: (options: { data: Record[]; fields: string[]; }) => void; } export interface UseDataTableExportOptions { data?: Record[]; dataKey?: string | null; selectionKeys?: Record; } export declare function useDataTableExport(options: UseDataTableExportOptions): { state: Readonly<{}>; exposes: { exportCSV: (exportOptions?: DataTableExportOptions) => void; }; };