export interface IRealtimeAuthenticator { authenticate(handshake: { cookies: Record; headers: Record; }): Promise<{ userId: string; roles: string[] } | null>; }