import { AxiosPromise } from 'axios';
export declare type WxRequest = (sessionToken?: string) => AxiosPromise<any>;
export declare type WxApi = (data?: any) => WxRequest;
/**
 * 请求wxapi
 * @param wxRequest wxRequest方法
 * @param whole 是否返回全部结构，默认只返回data
 */
declare function requestWxApi(wxRequest: WxRequest, whole?: boolean): Promise<any>;
export default requestWxApi;
