import { TokenApi } from './token-api';
import { CheckoutBillingAddressData, CheckoutDeliveryAddressData } from '../components/modular-checkout/types';
import { CheckoutModel, CheckoutCreateTransactionResponse } from './checkout-types';
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>;
    updateItemQuantity(checkoutId: string, itemId: string, quantity: number): Promise<void>;
    removeItem(checkoutId: string, itemId: string): 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>;
}
//# sourceMappingURL=checkout-api.d.ts.map