/** * 将数据导出为 CSV 或 JSON */ export declare const exportData: (data: any, fileType?: string, name?: string) => Promise; /** * 将内容保存为文件 */ export declare const saveContentToFile: (content: any, fileName: any, type?: string) => void; /** * 浏览器保存文件到本地 * @param {Blob} file * @param {string} fileName */ export declare const saveFile: (file: any, fileName: any) => void; /** * 通过链接下载文件 */ export declare const downloadFileFromUrl: (url: any, fileName: any) => void; /** * 读取上传的xlsx文件 */ export declare const getXlsxFileToJson: (file: any, cb: any) => void; /** * 读取上传的xlsx文件的表头 */ export declare const getXlsxFileHeader: (file: any, cb: any) => void; /** * 生成随机字符串 */ export declare const createRandomString: (len?: number) => string;