import type { EmitterSubscription, EventSubscription } from 'react-native'; import type { PrimerSettings } from '../models/PrimerSettings'; type EventType = 'onAvailablePaymentMethodsLoad' | 'onTokenizationStart' | 'onTokenizationSuccess' | 'onCheckoutResume' | 'onCheckoutPending' | 'onCheckoutAdditionalInfo' | 'onError' | 'onCheckoutComplete' | 'onBeforeClientSessionUpdate' | 'onClientSessionUpdate' | 'onBeforePaymentCreate' | 'onPreparationStart' | 'onPaymentMethodShow'; declare const RNPrimerHeadlessUniversalCheckout: { addListener(eventType: EventType, listener: (...args: any[]) => any): EventSubscription; removeListener(subscription: EmitterSubscription): void; removeAllListenersForEvent(eventType: EventType): void; removeAllListeners(): void; startWithClientToken(clientToken: string, settings: PrimerSettings): Promise; handleTokenizationNewClientToken: (newClientToken: string) => Promise; handleResumeWithNewClientToken: (newClientToken: string) => Promise; handleCompleteFlow: () => Promise; handlePaymentCreationAbort: (errorMessage: string | null) => Promise; handlePaymentCreationContinue: () => Promise; setImplementedRNCallbacks: (implementedRNCallbacks: any) => Promise; cleanUp: () => Promise; }; export default RNPrimerHeadlessUniversalCheckout; //# sourceMappingURL=RNPrimerHeadlessUniversalCheckout.d.ts.map