import type { EventHubService } from '@pikku/core/channel'; import type * as uWS from 'uWebSockets.js'; export declare class UWSEventHubService = {}> implements EventHubService { private sockets; constructor(); subscribe(topic: T, channelId: string): Promise; unsubscribe(topic: T, channelId: string): Promise; publish(topic: T, channelId: string | null, message: Mappings[T], isBinary?: boolean): Promise; onChannelOpened(channelId: string, socket: uWS.WebSocket): Promise; onChannelClosed(channelId: string): Promise; private forwardPublishMessage; }