import { CheckoutCallbacks } from '../../types/checkout/CheckoutCallback.type'; import { ApplePayContactField, Environment } from '../../types/checkout/CheckoutConfig.type'; import { Locale } from '../../types/common/Locale.type'; import { PaymentResult } from '../../types/payment/PaymentResult.type'; export type { VgsCardPayload } from './CardPayload.type'; export type { Environment }; export type ElementEvent = 'change' | 'blur' | 'focus' | 'error' | 'ready'; export interface MountOptions { locale?: string; disabled?: boolean; initialValue?: unknown; maxLength?: number; label?: string; placeholder?: string; defaultCountry?: string; callbacks?: Partial void>>; } export type OdusElementsCallbacks = CheckoutCallbacks; export type ApplePayConfig = { displayName?: string; countries?: string[]; requiredBillingContactFields?: ApplePayContactField[]; requiredShippingContactFields?: ApplePayContactField[]; }; export type AdditionalPaymentMethodsConfig = { applePay?: ApplePayConfig; }; export type ElementsConfig = { apiKey: string; environment: Environment; returnUrl: string; locale?: Locale; callbacks?: OdusElementsCallbacks; additionalPaymentMethods?: AdditionalPaymentMethodsConfig; }; export type ValidationResult = { valid: boolean; errors: Record; }; export type PaymentSuccessResult = PaymentResult; export type PaymentError = string; export type ActionRequiredData = string; export type AuthorizeResult = { status: 'succeeded'; data: PaymentSuccessResult; } | { status: 'action_required'; action: ActionRequiredData; } | { status: 'failed'; error: PaymentError; }; export type AuthorizePayload = { customerData?: { email?: string; name?: string; phoneNumber?: string; dateOfBirth?: string; gender?: string; billingAddress?: Record; shippingAddress?: Record; [key: string]: unknown; }; }; //# sourceMappingURL=index.d.ts.map