14 lines
463 B
TypeScript
14 lines
463 B
TypeScript
|
import { DataChannel } from '@agora-js/media';
|
||
|
|
||
|
type TRteServiceName = "ChannelMediaRelay" | "LiveStreaming" | "ImageModeration" | "ContentInspect" | "DataStream";
|
||
|
interface IRteService<T = any> {
|
||
|
name: TRteServiceName;
|
||
|
create: (...args: any[]) => T;
|
||
|
update?: (...args: any[]) => Promise<void> | void;
|
||
|
destroy?: (...args: any[]) => Promise<void> | void;
|
||
|
}
|
||
|
|
||
|
declare const DataStreamService: IRteService<DataChannel>;
|
||
|
|
||
|
export { DataStreamService };
|