10 lines
312 B
TypeScript
10 lines
312 B
TypeScript
|
import { Router } from './router';
|
||
|
export interface SentMsg {
|
||
|
msgId: string;
|
||
|
resolve: (msg: any) => void;
|
||
|
reject: (err: any) => void;
|
||
|
resolved: boolean;
|
||
|
}
|
||
|
export declare function sendMessage<T>(router: Router, msg: any): Promise<T>;
|
||
|
export declare function resolveMessages(router: Router): void;
|