UNPKG

datainout

Version:

Import and reports data

25 lines (22 loc) 1.33 kB
import { Readable } from 'stream'; import { I as ImporterHandlerInstance, a as ImporterLoadFunctionOpions, b as ImporterBaseReaderStreamType } from '../importer.type-BKjB0M5n.js'; import { IBaseStream } from '../common/core/ListEvents.js'; import { CellImportOptions } from '../common/types/import-template.type.js'; import { ExcelTemplateManager, IExcelTemplateManager } from '../common/core/Template.js'; import '../common/types/common-type.js'; declare class Importer { protected templatePath: string; protected excelsTemplate: ExcelTemplateManager<CellImportOptions>; constructor(templatePath: string); get ExcelTemplate(): IExcelTemplateManager<CellImportOptions>; load(filePath: string, handler: ImporterHandlerInstance, opts?: ImporterLoadFunctionOpions): Promise<any>; load(buffer: Buffer, handler: ImporterHandlerInstance, opts?: ImporterLoadFunctionOpions): Promise<any>; createStream(arg: string, handler: ImporterHandlerInstance, opts?: ImporterLoadFunctionOpions & { type?: ImporterBaseReaderStreamType; }): Omit<IBaseStream, "onError">; createStream(arg: Readable, handler: ImporterHandlerInstance, opts?: ImporterLoadFunctionOpions & { type?: ImporterBaseReaderStreamType; }): Omit<IBaseStream, "onError">; private createBaseReader; } export { Importer };