import { IBridgeOptions } from './interface'; interface IOpenPage { url: string; title: string; } /** * 打开新的外部链接 * * @param {IBridgeOptions} { url = '', title = '', success, fail, complete } */ declare function openPageSync({ url, title, success, fail, complete }: IBridgeOptions): void; /** * 打开新的外部链接 * 一个异步接口,支持 Promise 化使用 * @param {IBridgeOptions} { url = '', title = '' } * @returns */ declare function openPage({ url, title }: IBridgeOptions): Promise; export { openPage, openPageSync };