import type { NETWORK_OBSERVER_EVENTS } from '../constants/events'; export type ExtendedRTCPeerConnectionState = RTCPeerConnectionState | 'reconnected'; export type TransportDirection = 'send' | 'recv'; export interface TransportStatePayload { state: ExtendedRTCPeerConnectionState; direction: TransportDirection; } export interface NetworkObserverEvents { [NETWORK_OBSERVER_EVENTS.transportState]: [TransportStatePayload]; }