/** * * Agora Real Time Engagement * Created by Wei Hu in 2022-03. * Copyright (c) 2022 Agora IO. All rights reserved. * */ // In order to prevent the error of 'error TS2669: Augmentations for the global // scope can only be directly nested in external modules or ambient module // declarations', we must force tsc to interpret this file as a module. export {}; // Forward declarations declare class RTE {} declare class Cmd {} declare class Value {} declare global { declare namespace globalThis { // eslint-disable-next-line no-var var RteRuntime: { version: string; getExportedRte: ( extension_name: string, extension_group_name: string, timeout?: number ) => Promise; Cmd: typeof Cmd; Value: typeof Value; }; } }