declare type downloadFileOptions = { url: string; method?: "get" | "post"; data?: { [k: string]: any; }; headers?: { Authorization?: string; [k: string]: any; }; fileName?: string; callback?: (downloading: boolean) => void; }; declare type jsonToExcelOptions = { fileName: string; isHasExcelTitle?: boolean; isHasColumnTitle?: boolean; minColWidth?: number; data: any[]; columns: Array<{ title: string; dataIndex: string; hiddenInExcel: boolean; exportRender: (row: any) => string | number; [k: string]: any; }>; fieldNames?: { title: string; dataIndex: string; }; renderExcelTitleStyle?: (cellValue: string) => string | { [k: string]: any; }; renderColumnTitleStyle?: (cellValue: string, colIndex: number) => string | { [k: string]: any; }; renderCellStyle?: (cellValue: string, rowIndex: number, colIndex: number) => string | { [k: string]: any; }; }; /** * 下载文件 * @param param0 * @returns */ export declare const downloadFile: ({ url, method, data, headers, fileName, callback, }: downloadFileOptions) => Promise; /** * 生成Excel * @param XLSX * @param options * @returns */ export declare const jsonToExcel: (XLSX: any, options: jsonToExcelOptions) => void; export {};