import { ParticipantId } from '../../types/Participant'; import { StatItem, StatRtp, StatTransport } from '../../types/Statistics'; export declare const NO_STAT_REQUEST_DELAY = 1000; declare function distinctById(items: RTCStats[]): RTCStats[]; declare function rtcStatsToArray(stats: RTCStatsReport[]): RTCStats[]; /** * Extracts transport statistics from the gives stats * @hidden */ declare function extractTransport(stats: RTCStats[]): StatTransport; /** * Extracts media statistics from the given stats * @hidden */ declare function extractRtps(stats: RTCStats[], ssrcMap: Record, needToExtractRemote?: boolean): StatRtp[]; /** * Computes delta (the difference) between two stat reports. * @hidden */ declare function delta(current: StatItem, previous: StatItem, needToExtractRemote?: boolean): StatItem; declare function collectStats(pc: RTCPeerConnection, previous: StatItem | null, ssrcMap?: Record, needToExtractRemote?: boolean): Promise; declare function setMark(name: string): void; declare function clearMark(name: string): void; declare function measureMark(name: string): null | number; declare function getMarkNameScreenshareFirstFrame(uid: ParticipantId): string; declare const _default: { distinctById: typeof distinctById; rtcStatsToArray: typeof rtcStatsToArray; extractTransport: typeof extractTransport; extractRtps: typeof extractRtps; delta: typeof delta; collectStats: typeof collectStats; setMark: typeof setMark; clearMark: typeof clearMark; measureMark: typeof measureMark; getMarkNameScreenshareFirstFrame: typeof getMarkNameScreenshareFirstFrame; }; export default _default;