import type { AppliedCoupon, PromotionValidationResponse } from './types/promotion.js'; /** * Build an `AppliedCoupon` from a validated promotion response. * * All numeric fields are present when `isValid === true`; callers should only * call this function after confirming validity. If any field is missing the * function falls back to zero / empty-string so the return type is satisfied * without non-null assertions. */ export declare function buildAppliedCoupon(code: string, result: PromotionValidationResponse): AppliedCoupon; export declare function getCouponErrorMessage(result: PromotionValidationResponse, errorCodeMap: Record string>, fallback: string): string; //# sourceMappingURL=coupon.d.ts.map