import type { WalletSessionHandle } from '../walletSession'; import { PaymentResult } from '../paymentresult'; import type { HyperswitchConfiguration, PaymentElementHandle, PaymentSessionConfiguration, } from '../definitions'; import { CustomerSavedPaymentMethodsSession, SavedPaymentMethodsConfiguration, } from '../savedPaymentMethods'; import { PaymentSheetConfiguration } from '../PaymentSheetConfiguration'; export interface Elements { hyperswitchConfig: HyperswitchConfiguration; confirmPayment( paymentElementRef: { current: PaymentElementHandle | null } | string, options?: { confirmParams?: Record } ): Promise; presentPaymentSheet( configuration?: PaymentSheetConfiguration ): Promise; updateIntent( intentResolver: () => Promise ): Promise; getCustomerSavedPaymentMethods( options?: SavedPaymentMethodsConfiguration ): Promise; getWalletSession(): Promise; } /** * @deprecated Legacy alias for the action subset of {@link Elements}; not * consumed internally. Kept for source compatibility. */ export interface ElementsActions { confirmPayment: ( paymentElementRef: { current: PaymentElementHandle | null } | string, options?: { confirmParams?: Record } ) => Promise; updateIntent: ( intentResolver: () => Promise ) => Promise; getCustomerSavedPaymentMethods(): Promise; }