import { Flatfile } from '@flatfile/api'; import { FlatfileListener } from '@flatfile/listener'; declare const Extractor: (fileExt: string | RegExp, extractorType: string, parseBuffer: (buffer: Buffer, options: any) => WorkbookCapture | Promise, options?: Record) => (listener: FlatfileListener) => void; declare function keysToFields({ keys, descriptions, }: { keys: string[]; descriptions?: Record; }): Flatfile.Property[]; /** * Generic structure for capturing a workbook */ type WorkbookCapture = Record; /** * Generic structure for capturing a sheet */ type SheetCapture = { headers: string[]; descriptions?: Record | null; data: Flatfile.RecordData[]; metadata?: { rowHeaders: number[]; }; }; export { Extractor, type SheetCapture, type WorkbookCapture, keysToFields };