/** * * web evoke methods && check evoke-status */ /** * 通过 top.location.href 跳转 * @param {string}} [uri] - 需要打开的地址 */ export declare function evokeByLocation(uri: string): void; /** * 通过 A 标签唤起 * @param {string} uri - 需要打开的地址 */ export declare function evokeByTagA(uri: string): void; /** * 通过 iframe 唤起 * @param {string} [uri] - 需要打开的地址 */ export declare function evokeByIFrame(uri: string): void; /** * hack 检测是否唤端成功 * 原理见: https://developer.mozilla.org/zh-CN/docs/Web/API/Page_Visibility_API * @param failure - 唤端失败回调函数 * @param success - 唤端成功回调函数 * @param error - 唤端异常函数 * @param timeout - hack 失败检测延时 - 一般会触发下载 */ export declare function checkOpen(failure: () => void, success: () => void, error: () => void, timeout?: number): void;