export declare class EasyWsStub { private readonly _port; private readonly _path; private _socketServer?; private _connection?; private _resolveOnConnection?; private readonly _msgListeners; /** * A class to intercept and stub all messages on a certain socket. * @param port The port of the socket (localhost). * @param path The path of the socket (localhost). */ constructor(port: number, path?: string); /** * Call this in your beforeEach hook to start using the stub. * @returns A promise that resolves when the stub is ready to use. */ init(): Promise; send(data: any): Promise; close(): Promise; waitForConnection(): Promise; waitForMessage(message: any): Promise; }