import WebSocket from "ws"; export declare class Connection { static getConnectionID(uid: string, wsid: string): string; readonly ws: WebSocket; wsid: string; uid: string | void; private isAlive; private heartbeat; constructor(ws: WebSocket); getConnectionID: () => string; isOwner: (uid: string) => boolean; isItSelf: (uid: string, wsid: string) => boolean; setUserID: (uid: string) => void; send: (data: any) => void; wasTerminate: () => boolean; close: (message?: string) => void; terminate: (message?: string | undefined) => void; }