import type { PaymentValidationErrors } from '../../@standard/w3c/payment-validation-errors'; import type { PaymentComplete } from '../../enum/payment-complete.enum'; import type { PaymentResponseDetailsInterface } from '../../interface/payment-response-details.interface'; import type { PaymentResponseJsonInterface } from '../../interface/payment-response-json.interface'; import type { Maybe } from '@rnw-community/shared'; /** * The W3C `PaymentResponse` interface, returned once `PaymentRequest.show()` resolves. * * @see https://www.w3.org/TR/payment-request/#paymentresponse-interface */ export declare class PaymentResponse { readonly requestId: string; readonly methodName: string; readonly details: PaymentResponseDetailsInterface; readonly shippingOption: Maybe; private completeCalled; private retryCalled; constructor(requestId: string, methodName: string, details: PaymentResponseDetailsInterface, shippingOption?: Maybe); /** * The W3C `PaymentResponse.complete()` method. * * @see https://www.w3.org/TR/payment-request/#complete-method */ complete(result: PaymentComplete): Promise; /** * The W3C `PaymentResponse.retry()` method. * * @see https://www.w3.org/TR/payment-request/#dom-paymentresponse-retry */ retry(errorFields?: PaymentValidationErrors): Promise; /** * The W3C `PaymentResponse.toJSON()` serializer, also used by `JSON.stringify(paymentResponse)`. * * @see https://github.com/rnw-community/rnw-community/blob/master/packages/react-native-payments/docs/api/payment-response-json.md * @see https://www.w3.org/TR/payment-request/#idl-def-paymentresponse-tojson */ toJSON(): PaymentResponseJsonInterface; } //# sourceMappingURL=payment-response.d.ts.map