frontend/.pnpm-store/v3/files/7e/8d478b88087388971df4b3b0f9bdbe30ee4fac8194c42917ba72f02f161cda92c2e8c416734e8677d3049662426f5f497dd5a0e5d87a7ad5bf596e8045e02b

18 lines
696 B
Plaintext

/// <reference types="node" />
/// <reference types="bluebird" />
import { Converter } from "./Converter";
import P from "bluebird";
import { JSONResult } from "./lineToJson";
import { CSVParseParam } from "./Parameters";
import { ParseRuntime } from "./ParseRuntime";
export declare abstract class Processor {
protected converter: Converter;
protected params: CSVParseParam;
protected runtime: ParseRuntime;
constructor(converter: Converter);
abstract process(chunk: Buffer, finalChunk?: boolean): P<ProcessLineResult[]>;
abstract destroy(): P<void>;
abstract flush(): P<ProcessLineResult[]>;
}
export declare type ProcessLineResult = string | string[] | JSONResult;