///
///
///
///
///
///
interface AlitaBridge {
callHandler: (handlerName: string, data: any, responseCallback: (response: any) => void) => void;
registerPlugin: (pugin: { pluginName: string; methodsList: string[] }) => void;
}
interface Alita {
device: Device;
media: Media;
file: File;
ui: UI;
location: Location;
[key: string]: any;
}
interface Window {
/**
* @name alita 微应用SDK
* @description 一些设备相关的接口
*/
alita: Alita;
/**
* @ignore
*/
WebViewJavascriptBridge: AlitaBridge;
/**
* @description 容器标识
*/
alitanative?: 'ios' | 'android' | 'web';
}