import { CheckoutCallbacks } from '../../types/checkout/CheckoutCallback.type'; import { Appearance, CheckoutConfig } from '../../types/checkout/CheckoutConfig.type'; import { Locale } from '../../types/common/Locale.type'; declare class Checkout { private config; private _callbacks; private paymentState; private apiService; private formManager; private stateManager; private sessionId; constructor(config: CheckoutConfig); private validateConfig; mount(containerId: string): this; unmount(): void; /** * Runs the authorization and reports whether it succeeded. * * The merchant callbacks keep swallowing every failure — a decline is a * normal outcome, not an exception — so the return value is what tells the * Apple Pay sheet whether it may close with a success. */ private handleSubmit; /** * Reports the outcome to the merchant, and answers whether that outcome is * one the shopper may see as a success. A required action counts: the sheet * has to close before the shopper can be sent to the redirect. */ private handlePaymentResponse; private handleAuthorizationError; private getPaymentMethod; displayError(message: string): void; clearError(): void; update(props: { appearance?: Appearance; locale?: Locale; }): void; associatePayment(paymentId: string, checkoutKey: string): Promise; setCallbacks(callbacks: Partial): void; } export { Checkout }; //# sourceMappingURL=Checkout.service.d.ts.map