/** * Apple Pay contact validation helpers. * Ported from sma-checkout — helpers/contact-validation.ts * * pushFieldError / pushRequiredFieldError also fire TEDL analytics per field. */ import ApplePayErrorContactField = ApplePayJS.ApplePayErrorContactField; /** * Appends an ApplePayError to the error accumulator and fires a TEDL analytics * event for the failing field. Returns '' so it can be used inline with ||. */ export declare const pushFieldError: (errors: ApplePayError[], billingOrShippingContact: "billing" | "shipping" | undefined, field: ApplePayErrorContactField, errorType: "required" | "format" | "not-supported", errorText: string) => string; /** * Convenience wrapper for required-field errors. * Uses the standard 'Missing required field' message — matches sma-checkout exactly. */ export declare const pushRequiredFieldError: (errors: ApplePayError[], billingOrShippingContact: "billing" | "shipping" | undefined, field: ApplePayErrorContactField) => string; export declare class ContactValidationError extends Error { errors: ApplePayError[]; constructor(errors: ApplePayError[]); }