import { PaymentGateway } from "../../fragments/gqlTypes/PaymentGateway"; import { ErrorListener } from "../../helpers"; import { JobsManager } from "../../jobs"; import { SaleorState } from "../../state"; import { PromiseRunResponse } from "../types"; import { DataErrorCheckoutTypes, FunctionErrorCheckoutTypes, IAddress, IAvailableShippingMethods, ICheckout, IPayment, IPromoCodeDiscount, CreatePaymentInput, CompleteCheckoutInput } from "./types"; export declare class SaleorCheckoutAPI extends ErrorListener { loaded: boolean; checkout?: ICheckout; promoCodeDiscount?: IPromoCodeDiscount; billingAsShipping?: boolean; selectedShippingAddressId?: string; selectedBillingAddressId?: string; availableShippingMethods?: IAvailableShippingMethods; availablePaymentGateways?: PaymentGateway[]; payment?: IPayment; private saleorState; private jobsManager; constructor(saleorState: SaleorState, jobsManager: JobsManager); setShippingAddress: (shippingAddress: IAddress, email: string) => PromiseRunResponse; setBillingAddress: (billingAddress: IAddress, email?: string | undefined) => PromiseRunResponse; setBillingAsShippingAddress: () => PromiseRunResponse; setShippingMethod: (shippingMethodId: string) => PromiseRunResponse; addPromoCode: (promoCode: string) => PromiseRunResponse; removePromoCode: (promoCode: string) => PromiseRunResponse; createPayment: (input: CreatePaymentInput) => PromiseRunResponse; completeCheckout: (input?: CompleteCheckoutInput | undefined) => PromiseRunResponse; }