1 | import { Chrome, ChromelessOptions, Command } from '../types';
|
2 | export default class RemoteChrome implements Chrome {
|
3 | private options;
|
4 | private channelId;
|
5 | private channel;
|
6 | private connectionPromise;
|
7 | private TOPIC_NEW_SESSION;
|
8 | private TOPIC_CONNECTED;
|
9 | private TOPIC_REQUEST;
|
10 | private TOPIC_RESPONSE;
|
11 | private TOPIC_END;
|
12 | constructor(options: ChromelessOptions);
|
13 | private initConnection();
|
14 | process<T extends any>(command: Command): Promise<T>;
|
15 | close(): Promise<void>;
|
16 | }
|