import { $, $Events } from '../Class/$';
import { System } from '../system';
import { WebSocketShape } from '../system/platform/api/network/WebSocket';
import { Dict } from '../types/Dict';
import { CH } from '../types/interface/CH';
export type WebSocket_EE = {
    message: [string];
    close: [{
        code: number;
        reason: string;
    }];
    error: [string];
    open: [object];
};
export type WebSocketEvents<_EE extends Dict<any[]>> = $Events<_EE & WebSocket_EE> & WebSocket_EE;
export declare function wrapWebSocket(webSocket: WebSocketShape, system: System): CH & $<WebSocketEvents<{}>>;
