import { AxiosPromise } from 'axios';
export declare type WxRequest = (sessionToken?: string) => AxiosPromise<any>;
export declare type WxApi = (data?: any) => WxRequest;
export interface UseWxApiOptions {
    manual?: boolean;
    initialData?: any;
    defaultParams?: any;
    [key: string]: any;
    onSuccess?: (data: any) => void;
}
declare function useWxApi(wxApi: WxApi, options?: UseWxApiOptions): import("@ahooksjs/use-request/lib/types").BaseResult<any, any>;
export default useWxApi;
