import { NzSafeAny } from 'ng-zorro-antd/core/types'; import * as i0 from '@angular/core'; interface XlsxExportOptions { /** * worksheets in the workbook, e.g: * - `{ Sheet1: { A1: { t:"n", v:10000 } } }` * - `[['1'], [1]]` */ sheets: Record | XlsxExportSheet[]; /** File format, default: `xlsx` */ format?: 'csv' | 'xlsx'; /** save file name, default: `export.xlsx` */ filename?: string; /** See [Writing Options](https://github.com/SheetJS/sheetjs/blob/master/docbits/81_writeopts.md) */ opts?: NzSafeAny; /** triggers when saveas */ callback?: (wb: NzSafeAny) => void; } interface XlsxExportSheet { /** arrays to a worksheet */ data: NzSafeAny[][]; /** sheet name */ name?: string; } interface XlsxExportResult { filename: string; wb: NzSafeAny; } declare class XlsxService { private readonly http; private readonly lazy; private readonly ngZone; private readonly cogSrv; private cog; constructor(); private init; private read; /** * 导入Excel并输出JSON,支持 ``、URL 形式 */ import(fileOrUrl: File | string): Promise>; export(options: XlsxExportOptions): Promise; /** * 数据转符号名 * - `1` => `A` * - `27` => `AA` * - `703` => `AAA` */ numberToSchema(val: number): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class XlsxDirective { private readonly srv; readonly xlsx: i0.InputSignal; protected _click(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class XlsxModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { XlsxDirective, XlsxModule, XlsxService }; export type { XlsxExportOptions, XlsxExportResult, XlsxExportSheet };