import { OnGatewayConnection, OnGatewayDisconnect } from '@nestjs/websockets';
import { WsSocket } from './ws-socket';
export declare class WsGateway implements OnGatewayConnection, OnGatewayDisconnect {
    connectedClients: WsSocket[];
    broadcast(payload: string): Promise<void>;
    handleConnection(client: WsSocket, req: Request): Promise<void>;
    handleDisconnect(client: WsSocket): Promise<void>;
    onEvent({ type, payload }: {
        type?: string;
        payload?: any;
    }, ws: WsSocket): void;
}
