UNPKG

agora-edu-core

Version:

Core APIs for building an online classroom

25 lines (24 loc) 1.01 kB
import { EduRoleTypeEnum, EduRoomTypeEnum } from '..'; export declare const EduRole2RteRole: (roomType: EduRoomTypeEnum, roleType: EduRoleTypeEnum) => "host" | "assistant" | "broadcaster" | "invisible" | "observer" | "audience"; export declare const RteRole2EduRole: (roomType: EduRoomTypeEnum, role: string) => EduRoleTypeEnum; export declare const number2Percent: (v: number, fixed?: number) => string; export declare const CustomBtoa: (input: any) => string; export declare enum DevicePlatform { WEB = 1, MACOS = 2, WINDOWS = 3, IOS = 4, ANDROID = 5, H5 = 6 } export declare class UUAparser { private static _userAgent; private static _UAParserInstance; static get getType(): string | undefined; static get mobileBrowser(): boolean; } export declare const getPlatform: () => DevicePlatform.WEB | DevicePlatform.MACOS | DevicePlatform.WINDOWS | DevicePlatform.H5; export declare function getImageSize(file: File): Promise<{ width: number; height: number; }>;