import { MPApi } from '@hylid/types'; import { JsApiConfig, MpWebJsApiOptions } from './types'; import { mpWebOnMessage, mpWebPostMessage } from './mpWebBridge'; export declare function mpWebCall(api: T | ({} & string), options?: MpWebJsApiOptions, config?: JsApiConfig): void; export declare namespace mpWebCall { var onMessage: typeof mpWebOnMessage; var postMessage: typeof mpWebPostMessage; var broadcastGlobalData: (key: string, result: any) => void; var onReceiveGlobalData: (key: string, callback: (data: any, error: any, form: string) => void) => () => void; var onPageEvent: (event: ({} & string) | "onShow" | "onHide" | "onTitleClick" | "onOptionMenuClick" | "onTabItemTap", callback: (data: any, err?: any) => void) => () => void; } export declare const mpWebCallAsync: (apiName: string, options?: any, config?: { /** 超时时长,默认 20000, 0 表示不判断超时 */ timeout: number; isSync?: boolean; }) => Promise;