import type { IAppVersionInfoProps, ICapsuleBtnStyleProps, IConfigurationProps, InitializeProps, UniMPEventData } from './types'; /** * 初始化小程序SDK * @param params 初始化参数 * @param capsuleBtnStyle 胶囊按钮样式 */ export declare function initialize(params: InitializeProps, capsuleBtnStyle?: ICapsuleBtnStyleProps): Promise; /** * 校验小程序SDK是否已初始化(Android) */ export declare function isInitialize(): Promise; /** * 获取小程序运行路径 * @param appid 小程序appid */ export declare function getAppBasePath(appid?: string): Promise; /** * 将wgt包中的资源文件释放到uni小程序运行时路径下 * @param appid 小程序appid * @param wgtPath 小程序应用资源包路径 仅支持SD路径 不支持assets * @param password 资源包解压密码(猜的) */ export declare function releaseWgtToRunPath(appid: string, wgtPath?: string | null, password?: string): Promise; /** * 检查当前appid小程序是否已释放wgt资源 * 可用来检查当前appid资源是否存在 * @param appid 小程序appid */ export declare function isExistsApp(appid: string): Promise; /** * 读取导入到工程中的wgt应用资源 * @param appid 小程序appid */ export declare function getWgtPath(appid: string): Promise; /** * 启动小程序 * @param appid uni小程序应用id * @param configuration uni小程序应用配置 */ export declare function openUniMP(appid: string, configuration?: IConfigurationProps): Promise; /** * 手动关闭小程序 * @param appid 小程序ID */ export declare function closeUniMP(appid: string): Promise; /** * 当前小程序显示到前台/退到后台 * @param appid 小程序ID * @param show 显示或隐藏 */ export declare function showOrHideUniMP(appid: string, show: boolean): Promise; /** * 宿主主动触发事件到正在运行的小程序 * @param appid 小程序ID * @param eventName 显示或隐藏 * @param data 传参 */ export declare function sendUniMPEvent(appid: string, eventName: string, data: Record): Promise; /** * 设置监听小程序发送给宿主的事件 */ export declare function setOnUniMPEventCallBack(): void; /** * 将宿主的处理结果单次回调给小程序 * @param callbackId onEventReceive 事件中携带的回调标识 * @param responseData 回调数据 */ export declare function invokeUniMPEventCallback(callbackId: string, responseData: UniMPEventData): Promise; /** * 获取uni小程序版本信息 * @param appid uni小程序应用id */ export declare function getAppVersionInfo(appid: string): Promise; /** * 获取运行时uni小程序的当前页面url 可用于页面直达等操作的地址 * @param appid 当前运行的小程序应用id */ export declare function getCurrentPageUrl(appid: string): Promise; //# sourceMappingURL=Methods.d.ts.map