import { InterceptLocalAudioFrameOptions, InterceptRemoteAudioFrameOptions, LocalVideoTrack, InterceptVideoFrameOptions } from '@agora-js/media'; type TRteServiceName = "ChannelMediaRelay" | "LiveStreaming" | "ImageModeration" | "ContentInspect" | "DataStream" | "P2PChannel" | "PlanBConnection" | "InterceptFrame" | "DataChannelConnection" | "DataChannelSignal"; interface IRteService { name: TRteServiceName; create: (...args: any[]) => T; createSubmodule?: (...args: any[]) => R; } interface InterceptFrame { interceptLocalAudioFrame: (sender: RTCRtpSender, options: InterceptLocalAudioFrameOptions) => Promise; interceptRemoteAudioFrame: (receiver: RTCRtpReceiver, options?: InterceptRemoteAudioFrameOptions) => Promise; interceptLocalVideoFrame: (sender: RTCRtpSender, localVideoTrack: LocalVideoTrack) => Promise; interceptRemoteVideoFrame: (receiver: RTCRtpReceiver, options: InterceptVideoFrameOptions) => Promise; } declare const interceptFrame: InterceptFrame; declare const InterceptFrameService: IRteService; export { InterceptFrameService }; export type { InterceptFrame };