/**
 * Events WebSocket Handler
 *
 * Handles WebSocket connections for the event-subscription protocol.
 * Clients can subscribe to channels (tasks, messages, etc.) and receive
 * real-time event updates from the EventBroadcaster.
 */
import type { SubscriptionChannel } from '@stoneforge/shared-routes';
import type { EventListener } from '@stoneforge/shared-routes';
import type { ServerWebSocket } from './types.js';
/**
 * Client data stored with each event-subscription WebSocket connection
 */
export interface EventsWSClientData {
    id: string;
    wsType: 'events';
    subscriptions: Set<SubscriptionChannel>;
    eventListener: EventListener;
}
/**
 * Handle a new event-subscription WebSocket connection
 */
export declare function handleEventsWSOpen(ws: ServerWebSocket<EventsWSClientData>): void;
/**
 * Handle an event-subscription WebSocket message
 */
export declare function handleEventsWSMessage(ws: ServerWebSocket<EventsWSClientData>, message: string | Buffer): void;
/**
 * Handle event-subscription WebSocket close
 */
export declare function handleEventsWSClose(ws: ServerWebSocket<EventsWSClientData>): void;
//# sourceMappingURL=events-websocket.d.ts.map