1 |
|
2 |
|
3 | import { Converter } from "./Converter";
|
4 | import P from "bluebird";
|
5 | import { JSONResult } from "./lineToJson";
|
6 | import { CSVParseParam } from "./Parameters";
|
7 | import { ParseRuntime } from "./ParseRuntime";
|
8 | export declare abstract class Processor {
|
9 | protected converter: Converter;
|
10 | protected params: CSVParseParam;
|
11 | protected runtime: ParseRuntime;
|
12 | constructor(converter: Converter);
|
13 | abstract process(chunk: Buffer, finalChunk?: boolean): P<ProcessLineResult[]>;
|
14 | abstract destroy(): P<void>;
|
15 | abstract flush(): P<ProcessLineResult[]>;
|
16 | }
|
17 | export declare type ProcessLineResult = string | string[] | JSONResult;
|