import type { Room } from 'livekit-client'; import type { NetworkQuality } from '../../../core/types/events.types'; /** * Get native RTC stats report from peer connection(s). * * LiveKit supports multiple PC modes: * - publisher-only: single PC for both outbound and inbound * - subscriber-primary / publisher-primary: separate PCs * * This method handles both cases by checking if subscriber PC exists. * * Note: This uses LiveKit's internal API (room.engine.pcManager) which may * change in future versions. If this breaks, update the path or fallback * to track-based stats collection. * * @returns RTCStatsReport containing stats for all tracks * @see https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport */ export declare function getStats(room: Room | null): Promise; /** * Get current network quality based on local participant's connection quality. */ export declare function getNetworkQuality(room: Room | null): NetworkQuality; //# sourceMappingURL=stats.service.d.ts.map