1 | import { MessageEndpoint } from './index';
|
2 | export default class Stagehand {
|
3 | private endpoint?;
|
4 | private commandCoordinator?;
|
5 | private handleRegistry;
|
6 | private implementation?;
|
7 | constructor(implementation?: {});
|
8 | isConnected(): boolean;
|
9 | listen(endpoint: MessageEndpoint): Promise<void>;
|
10 | connect(endpoint: MessageEndpoint): Promise<{
|
11 | name: string;
|
12 | methods: string[];
|
13 | }>;
|
14 | call(method: string, args: unknown[]): Promise<unknown>;
|
15 | disconnect(): Promise<void>;
|
16 | private startup;
|
17 | private shutdown;
|
18 | private rehydrateRemoteFunction;
|
19 | private executor;
|
20 | }
|