import { Detector } from "./Detector"; import { PeerConnectionMonitor } from "../monitors/PeerConnectionMonitor"; export type TransportLossIssuePayload = { peerConnectionId: string; fractionLost: number; direction: 'inbound' | 'outbound'; sustainedForInMs: number; durationInMs?: number; }; export type TransportLossDetectorConfig = { threshold: number; recoveryThreshold: number; durationInMs: number; }; export declare class TransportLossDetector implements Detector { readonly peerConnection: PeerConnectionMonitor; static readonly ISSUE_TYPE = "transport-loss-sustained"; readonly name = "transport-loss-detector"; disabled: boolean; includeIssueInSample: boolean; inputsUnavailable: boolean; private readonly issueKey; private _sustainedForInMs; private _raised; private _startedAt?; constructor(peerConnection: PeerConnectionMonitor); private get config(); update(): void; private _resolve; }