///
///
import { Transform, TransformCallback } from "stream";
import { Worksheet, stream, Column, Workbook, Style } from "exceljs";
export interface ExcelStreamOptions {
stream?: import('stream').Stream;
useSharedStrings?: boolean;
useStyles?: boolean;
}
export interface ExcelWorkSheetInfo {
name: string;
columns: Column[];
}
export interface ExcelWorkBookOptions {
category?: string;
company?: string;
creator?: string;
description?: string;
keywords?: string;
lastModifiedBy?: string;
created?: Date;
manager?: string;
modified?: Date;
lastPrinted?: Date;
subject?: string;
title?: string;
}
export interface ExcelDataInfo {
sheetName: string;
row: any;
}
export interface ExcelParseInfo {
colName: string;
targetIndex: number | Array;
convertFunction?: Function;
}
export interface ExcelParseSheetInfo {
rowStartIdx?: number;
colStartIdx?: number;
rowEndIdx?: number;
colEndIdx?: number;
parseInfo?: Array;
}
export declare class ExcelExport {
fileName: string;
workbookOptions: ExcelWorkBookOptions;
sheetInfos: any[];
defaultWorksheetOption: any;
workbook: Workbook;
worksheetArr: Map;
constructor(fileName: string, workbookOptions: ExcelWorkBookOptions, sheetInfos: any[], defaultWorksheetOption: any);
private getDefaultCellStyle;
addRow(data: ExcelDataInfo): void;
addRows(datas: ExcelDataInfo[]): void;
export(res: any): Promise;
}
export interface ExcelExportMerge {
cellStart?: string;
cellEnd?: string;
rowStart?: number;
colStart?: number;
rowEnd?: number;
colEnd?: number;
}
export interface ExcelHeaderValue {
index: number;
value: string;
}
export interface ExcelHeaderStyleInfo {
index: number;
style: Partial