import { ParsedConnectionStats, StatsReportItem } from 'webrtc-issue-detector/dist/types'; import type { ParsedInboundAudioStreamCompositeStats, ParsedInboundVideoStreamCompositeStats, ParsedOutboundAudioStreamCompositeStats, ParsedOutboundVideoStreamCompositeStats } from './types'; export default class StatsHandler { #private; handle(payload: StatsReportItem[]): void; addConnectionHandler(id: string, handler: (stats: ParsedConnectionStats) => void): void; addInboundVideoHandler(id: string, handler: (stats: ParsedInboundVideoStreamCompositeStats) => void): void; addInboundAudioHandler(id: string, handler: (stats: ParsedInboundAudioStreamCompositeStats) => void): void; addOutboundVideoHandler(id: string, handler: (stats: ParsedOutboundVideoStreamCompositeStats[]) => void): void; addOutboundAudioHandler(id: string, handler: (stats: ParsedOutboundAudioStreamCompositeStats) => void): void; removeConnectionHandler(id: string): void; removeInboundVideoHandler(id: string): void; removeInboundAudioHandler(id: string): void; removeOutboundVideoHandler(id: string): void; removeOutboundAudioHandler(id: string): void; clear(): void; }