1 | /// <reference types="node" />
|
2 | import { ReadLine } from 'readline';
|
3 | export declare type LineHandler = (line: string, index: number) => Promise<any>;
|
4 | export interface Stats {
|
5 | length: number;
|
6 | times: number[];
|
7 | timeAverage: number;
|
8 | }
|
9 | export interface State {
|
10 | buffer: string[];
|
11 | isOpen: boolean;
|
12 | stats: Stats;
|
13 | reader: ReadLine;
|
14 | resolve: Function;
|
15 | reject: Function;
|
16 | lineHandler: LineHandler;
|
17 | index: number;
|
18 | }
|
19 | declare const _default: (lineHandler: LineHandler, input?: NodeJS.ReadableStream) => Promise<void>;
|
20 | export default _default;
|