import { BaseCommand } from '@/core/command/base-command.service'; import type { ICheckoutDetailsEventData } from '@/core/pubsub/interfaces/checkout.interface'; import type { ICheckoutPaymentMethodStore } from '@/core/store/interfaces/checkout.interface'; import type { ICheckoutBilling, ICheckoutCustomer, ICheckoutGiftRecipient, ICheckoutPrepare } from '@/interfaces/api/checkout.interface'; import type { AddItemParams } from '@/modules/cart/cart.commands'; import type { PresaleExpiredReason } from '@/modules/checkout/components'; export declare class CheckoutCommands extends BaseCommand { private readonly uiCommands; constructor(); static getInstance(): CheckoutCommands; addPresaleItem(params: AddItemParams): Promise; loadCheckout(params: { checkoutId?: string; cartId?: string; isForPresale?: boolean; }): Promise; loadCheckoutFromResponse(response: ICheckoutPrepare): void; toggleIsGift(active?: boolean): Promise; toggleBillingSameAsShipping(active?: boolean): Promise; toggleMarketingPreferences(fieldName: 'canEmail' | 'canSms', active?: boolean): Promise; getPaymentSession(): Promise; confirmPaymentSession(confirmationTokenId: string, setupIntentId: string): Promise; applyPromoCode(code: string): Promise; removePromoCode(): Promise; clearPromoCodeError(): Promise; applyGiftCard(code: string): Promise; removeGiftCard(code: string): Promise; clearGiftCardError(): Promise; showPresaleExpired(reason?: PresaleExpiredReason): void; openCheckout(): void; getReturnUrl(): string | null; private resolveCheckoutPageUrl; rerenderCheckout(): void; updateCheckoutItemQuantity(itemId: string, delta: number): Promise; removeItemEngraving(productItemId: string): Promise; removeItem(itemId: string, isNotStandAlone?: boolean): Promise; updateTips(percentage: number): Promise; updateFulfillmentTip(fulfillmentId: string, tipAmount: number): Promise; removeFulfillmentTip(fulfillmentId: string): Promise; clearCheckoutError(): Promise; editCustomerForm(): Promise; saveCustomerForm({ shippingAddressTwo, deliveryInstructions, customerData, }: { customerData: ICheckoutCustomer; shippingAddressTwo: string; deliveryInstructions: string; }): Promise; editGiftRecipientForm(): Promise; saveGiftRecipientForm({ shippingAddressTwo, deliveryInstructions, ...giftRecipientData }: ICheckoutGiftRecipient & { shippingAddressTwo: string; deliveryInstructions: string; }): Promise; editPaymentForm(): Promise; private resetCheckoutPreservingInjected; private markInjectedPaymentReady; savePaymentForm({ billingFormData, paymentSession, }: { billingFormData?: ICheckoutBilling; paymentSession?: { confirmationTokenId: string; setupIntentId: string; }; }): Promise; checkoutComplete(): Promise; private updateStoreFromCheckoutResponse; private syncFromItemUpdate; private syncCheckoutState; private refreshCheckout; private dataForCheckoutPrepare; getDetails(): ICheckoutDetailsEventData; }