1 |
|
2 | import { Readable } from 'stream';
|
3 | import { Command, CommandIdentifier } from '../command';
|
4 | import { Logger } from '../logger';
|
5 | import { FlowController } from './flow-controller';
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare class InputHandler implements FlowController {
|
16 | private readonly logger;
|
17 | private readonly defaultInputTarget;
|
18 | private readonly inputStream?;
|
19 | private readonly pauseInputStreamOnFinish;
|
20 | constructor({ defaultInputTarget, inputStream, pauseInputStreamOnFinish, logger, }: {
|
21 | inputStream?: Readable;
|
22 | logger: Logger;
|
23 | defaultInputTarget?: CommandIdentifier;
|
24 | pauseInputStreamOnFinish?: boolean;
|
25 | });
|
26 | handle(commands: Command[]): {
|
27 | commands: Command[];
|
28 | onFinish?: () => void | undefined;
|
29 | };
|
30 | }
|