import { HttpService } from '@nestjs/axios'; import { WechatPayModuleOptions } from '../interfaces/options.interface'; import { PlaceOrderJSAPIParams } from '../interfaces/params'; import { PlaceOrderJSAPIResponse } from '../interfaces/response/jsapi/place-order.mp.response.interface'; import { RefundJSAPIParams } from '../interfaces/params'; import { RefundJSAPIResponse } from '../interfaces/response/jsapi/refund.mp.response.interface'; import { AuthUtil } from '../utils/auth.util'; import { DateUtil } from '../utils/date.util'; import { SignUtil } from '../utils/sign.util'; export declare class WechatPayJSAPIService { private readonly options; private readonly httpService; private readonly authUtil; private readonly signUtil; private readonly dateUtil; constructor(options: WechatPayModuleOptions, httpService: HttpService, authUtil: AuthUtil, signUtil: SignUtil, dateUtil: DateUtil); /** * 统一下单接口 * @param params JSAPI支付下单参数 * @returns 统一下单结果 */ placeOrder(params: PlaceOrderJSAPIParams): Promise; /** * 退款接口 * @param params 退款参数 */ refund(params: RefundJSAPIParams): Promise; }