UNPKG

731 BTypeScriptView Raw
1import { Wechaty } from './wechaty';
2export interface IoClientOptions {
3 token: string;
4 wechaty: Wechaty;
5 port?: number;
6}
7export declare class IoClient {
8 /**
9 * Huan(20161026): keep io `null-able` or not?
10 * Huan(202002): make it optional.
11 */
12 private io?;
13 private puppetServer?;
14 private state;
15 protected options: Required<IoClientOptions>;
16 constructor(options: IoClientOptions);
17 private startPuppetServer;
18 private stopPuppetServer;
19 start(): Promise<void>;
20 private hookWechaty;
21 private startIo;
22 private stopIo;
23 private onMessage;
24 stop(): Promise<void>;
25 restart(): Promise<void>;
26 quit(): Promise<void>;
27}
28//# sourceMappingURL=io-client.d.ts.map
\No newline at end of file