/** * * Agora Real Time Engagement * Created by Liu Loulou in 2022-09. * Copyright (c) 2022 Agora IO. All rights reserved. * */ import { getExportedRte } from './addon/export_rte'; import { Cmd } from './msg/cmd/cmd'; import { Value } from './value/value'; // NOTE: We have to make sure that the interfaces in the declaration files are // consistency with react_native, due to the extensions running in NodeJS and // ReactNative will use the same 'rte_runtime' module. But the interface in // 'common/fs' is not compatible with that in react_native, so we don't export // it now. export * from './addon/addon'; export * from './addon/bundle'; export * from './addon/export_rte'; export * from './app/app'; export * from './app/metadata'; export * from './common/common'; export * from './common/logger'; export * from './extension/extension'; export * from './extension/ui_base_extension'; export * from './extension_group/extension_group'; export * from './metadata/metadata'; export * from './msg/cmd/cmd'; export * from './msg/image_frame/image_frame'; export * from './msg/pcm_frame/pcm_frame'; export * from './rte/rte'; export * from './value/value'; if (globalThis.RteRuntime !== undefined) { throw new Error( `Only one copy of rte_runtime in the same app, version: \ ${globalThis.RteRuntime.version}.`, ); } globalThis.RteRuntime = { version: '20220828', getExportedRte, Cmd, Value, };