1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | import { EventEmitter } from "events";
|
7 |
|
8 |
|
9 | export type UnilateralTags = "unilateralTags" | "log";
|
10 |
|
11 | export interface ClientOptions {
|
12 | |
13 |
|
14 |
|
15 |
|
16 |
|
17 | watchmanBinaryPath?: string | undefined;
|
18 | }
|
19 |
|
20 | export interface Capabilities {
|
21 | optional: any[];
|
22 | required: any[];
|
23 | }
|
24 |
|
25 | export type doneCallback = (error?: Error | null, resp?: any) => any;
|
26 |
|
27 | export class Client extends EventEmitter {
|
28 | constructor(options?: ClientOptions);
|
29 | sendNextCommand(): void;
|
30 | cancelCommands(why: string): void;
|
31 | connect(): void;
|
32 | command(args: any, done: doneCallback): void;
|
33 | capabilityCheck(
|
34 | caps: Capabilities,
|
35 | done: doneCallback,
|
36 | ): void;
|
37 | end(): void;
|
38 | }
|