/** * CheckMacEncoder * * Responsible for generating and verifying the CheckMacValue (checksum) * for ECPay Logistics API. * * Note: ECPay Logistics uses MD5. */ export declare class CheckMacEncoder { private readonly hashKey; private readonly hashIV; constructor(hashKey: string, hashIV: string); /** * Encode the payload by adding CheckMacValue. */ encodePayload(payload: Record): Record; /** * Verify the response data's CheckMacValue. */ verifyResponse(responseData: Record): boolean; /** * Verify and throw error if invalid. */ verifyOrFail(responseData: Record): Record; /** * Generate CheckMacValue from data using MD5. */ generateCheckMacValue(data: Record): string; private dotNetUrlEncode; }