import type { PaymentDetailsUpdate } from '../../@standard/w3c/payment-details-update'; import type { PaymentRequestEventType } from '../../type/payment-request-event.type'; import type { PaymentRequestUpdateHandler } from '../../type/payment-request-update-handler.type'; /** * The W3C `PaymentRequestUpdateEvent` interface. * * @see https://www.w3.org/TR/payment-request/#dom-paymentrequestupdateevent */ export declare class PaymentRequestUpdateEvent { readonly type: PaymentRequestEventType; private isUpdated; private readonly onUpdateWith; constructor(type: PaymentRequestEventType, onUpdateWith: PaymentRequestUpdateHandler); /** * Whether `updateWith()` was already called for this event, so a later listener can skip an answered one. * * @see https://github.com/rnw-community/rnw-community/blob/master/packages/react-native-payments/docs/api/payment-request-update-event.md */ get isAnswered(): boolean; /** * The W3C `PaymentRequestUpdateEvent.updateWith()` method answering the change event with updated details. * * @see https://github.com/rnw-community/rnw-community/blob/master/packages/react-native-payments/docs/api/payment-request-update-event.md * @see https://www.w3.org/TR/payment-request/#dom-paymentrequestupdateevent-updatewith */ updateWith(detailsUpdate: PaymentDetailsUpdate | Promise): void; } //# sourceMappingURL=payment-request-update-event.d.ts.map