export interface ITable { headers: string[]; data: Record[]; tableName: string; tableTitle?: string; } interface IExcelOptions { tables: ITable[]; fileName: string; additionalTexts?: (string | string[])[]; } /** * Function to export excel, previously this only handle for 1 table in 1 file * Now this function has been refactored to be able to format multiple tables in 1 file without altered its original functionality * However, the way to called this function is changing a little bit (look for component DataTable and find usage of util `exportToExcel`) * * @param options - param that contain tables and filename for excel */ declare const exportToExcel: (options: IExcelOptions) => Promise; export default exportToExcel;