import * as WebSocket from 'ws'; import { BaseEvent } from '../common'; export interface IMessage { type: string; data: T; evtId: string; timestamp: number; } export declare class Client { readonly ws: WebSocket; readonly id: string; isAuthorized: boolean; isNode: boolean; isAdmin: boolean; constructor(ws: WebSocket); sendEvent(evt: BaseEvent): void; sendMessage(msg: { type: string; success?: boolean; data: any; }, evtId: string): void; }