export declare type NativePage = 'login' | 'main_select_goods' | 'main_find' | 'main_shoppingcart' | 'main_user' | 'contact_customservice' | 'recharge_money_normal' | 'recharge_money_upgradeVip' | 'ship_address'; export declare type ShareType = 'image' | 'webpage' | 'miniprogram'; export declare type ShareChannel = 'wxSceneTimeLine' | 'wxSceneSession'; export interface UserInfo { id: number; country: string; nickname: string; headimgurl: string; city: string; province: string; sex: number; token: string; created_at: string; updated_at: string; } export interface ShareOptions { type: ShareType; channel: ShareChannel; title?: string; content?: string; link?: string; path?: string; imgUrlList?: any[]; } /** * 获取用户信息 */ export declare const getUserInfo: () => Promise; /** * 关闭webview窗口 */ export declare const closeWindow: () => Promise; /** * 调用分享信息 */ export declare const share: (opts: ShareOptions) => Promise; /** * 跳转到原生页面 */ export declare const goToPage: (page: NativePage) => Promise; /** * 显示右上角按钮 */ export declare const showNavRightButton: () => Promise; /** * 隐藏右上角按钮 */ export declare const hideNavRightButton: () => Promise; /** * 判断某个API是否可用 */ export declare const checkJsApi: (apiName: string) => Promise; /** * 路由回退 */ export declare const goBack: () => Promise; /** * 拷贝文本 */ export declare const copyText: (text: string) => Promise; /** * 保存图片到本地 * * @param url 图片url */ export declare const saveImg: (url: string) => Promise; /** * 打开微信 */ export declare const openWeixin: () => Promise; /** * 检查设备权限 */ export declare const isPermissions: (permissionName: string) => Promise; /** * 调起支付 */ export declare const goToPay: (orderNumber: string, payMoney: string) => Promise; /** * 退出登陆,清除token,跳到登陆页 */ export declare const logout: () => Promise; /** * 通知客户端需要保存信息 */ export declare const noticeSave: (type: string, saveMsg: string) => Promise; /** * 隐藏顶部状态栏 */ export declare const hideStatusBar: () => Promise; /** * 隐藏顶部状态栏 * 参数 url 要跳转的H5页面 */ export declare const openMiniProgram: (url: string) => Promise;