import { BucketType, GenericSample, PostprocessSampleFunction, PreprocessSampleFunction, StatEntityType } from "../../../domain/stats"; export declare type RTCStatsWithDynamicRecords = RTCStats & Record; export declare type StatCollectionDefinition = { entityType: StatEntityType; name: string; bucketType: BucketType; statKey: string; preprocessor?: PreprocessSampleFunction; postprocessor?: PostprocessSampleFunction; }; export declare function makeStatCollectionDefinition(entityType: StatEntityType, name: string, bucketType: BucketType, statKey: string, preprocessor?: PreprocessSampleFunction, postprocessor?: PostprocessSampleFunction): StatCollectionDefinition; export declare function preprocessPerSecond(currentSample: GenericSample, currentTimestamp: number, previousSample?: GenericSample, previousTimestamp?: number): number; export declare function preprocessBPS(currentSample: GenericSample, currentTimestamp: number, previousSample?: GenericSample, previousTimestamp?: number): number; export declare function truncSample(processedSample: GenericSample): number; export declare function roundSample(processedSample: GenericSample): number; export declare function roundSample2Dp(processedSample: GenericSample): number; export declare function preprocessSecondsToMs(currentSample: GenericSample, currentTimestamp: number, previousSample?: GenericSample, previousTimestamp?: number): number; export declare function findActiveCandidatePair(report: RTCStatsReport): RTCStatsWithDynamicRecords | null; export declare function preprocessPacketsLost(currentSample: GenericSample, currentTimestamp: number, previousSample?: GenericSample, previousTimestamp?: number, currentAuxRawSample?: GenericSample, previousAuxRawSample?: GenericSample): number;