matrix-js-sdk
Version:
Matrix Client-Server SDK for Javascript
15 lines • 932 B
TypeScript
import { TypedEventEmitter } from "../../models/typed-event-emitter";
import { ByteSentStatsReport, CallFeedReport, ConnectionStatsReport, StatsReport, SummaryStatsReport } from "./statsReport";
export type StatsReportHandlerMap = {
[StatsReport.BYTE_SENT_STATS]: (report: ByteSentStatsReport) => void;
[StatsReport.CONNECTION_STATS]: (report: ConnectionStatsReport) => void;
[StatsReport.CALL_FEED_REPORT]: (report: CallFeedReport) => void;
[StatsReport.SUMMARY_STATS]: (report: SummaryStatsReport) => void;
};
export declare class StatsReportEmitter extends TypedEventEmitter<StatsReport, StatsReportHandlerMap> {
emitByteSendReport(byteSentStats: ByteSentStatsReport): void;
emitConnectionStatsReport(report: ConnectionStatsReport): void;
emitCallFeedReport(report: CallFeedReport): void;
emitSummaryStatsReport(report: SummaryStatsReport): void;
}
//# sourceMappingURL=statsReportEmitter.d.ts.map