import { HttpMethod } from '../constants/common.constant'; import { WechatPayModuleOptions } from '../interfaces/options.interface'; export declare class SignUtil { private readonly options; constructor(options: WechatPayModuleOptions); /** * Http请求签名 * @param method Http请求方法 * @param nonceStr 随机字符串 * @param timestamp 时间戳 * @param url URL路径(相对路径,例如:/v3/pay/transactions/h5) * @param body 请求参数 * @returns 签名结果 */ httpSignature(method: HttpMethod, nonceStr: string, timestamp: string, url: string, body?: string | object): string; /** * SHA256withRSA加密 * @param data 待加密字符串 * @returns 加密结果 */ sha256WithRsa(data: string): string; }