import { TokenApi } from './token-api';
import { CheckoutBillingAddressData, CheckoutDeliveryAddressData } from '../components/modular-checkout/types';
import { CheckoutCreateTransactionResponse, CheckoutModel } from './checkout-types';
import { PaymentMethod } from './shopper-account-api';
export declare class CheckoutApi {
    private tipserApiUrl;
    private tokenApi;
    constructor(tipserApiUrl: string, tokenApi: TokenApi);
    create(userLocale: string): Promise<string>;
    get(checkoutId: string): Promise<CheckoutModel>;
    updateBillingAddress(checkoutId: string, billingData: CheckoutBillingAddressData): Promise<void>;
    updateDeliveryAddress(checkoutId: string, deliveryData: CheckoutDeliveryAddressData): Promise<void>;
    createTransaction(checkoutId: string, paymentProviderId: string, pspReferenceId?: string): Promise<CheckoutCreateTransactionResponse>;
    cancelTransaction(checkoutId: string, transactionId: string): Promise<void>;
    confirm(checkoutId: string): Promise<CheckoutCreateTransactionResponse>;
    addPromotionCode(checkoutId: string, promotionCode: string): Promise<void>;
    removePromotionCode(checkoutId: string, promotionCodeId: string): Promise<void>;
    acknowledgeCheckout(checkoutId: string, acknowledgedTotalPrice: number): Promise<void>;
    syncConsumerDetails(checkoutId: string, pspReferenceId: string): Promise<void>;
    authorizeTransaction(checkoutId: string, transactionId: string): Promise<CheckoutCreateTransactionResponse>;
    authorizeBoltTransaction({ transaction, checkoutId, includeCredentials, }: {
        checkoutId: string;
        transaction: unknown;
        includeCredentials: boolean;
    }): Promise<unknown>;
    addNewCard(checkoutId: string, transaction: any): Promise<PaymentMethod>;
}
//# sourceMappingURL=checkout-api.d.ts.map