import { PaymentGateway } from "../../fragments/gqlTypes/PaymentGateway"; import { ErrorListener } from "../../helpers"; import { JobsManager } from "../../jobs"; import { CooperState } from "../../state"; import { Config } from "../../types"; import { PromiseRunResponse } from "../types"; import { DataErrorCheckoutTypes, FunctionErrorCheckoutTypes, IAddress, IAvailableShippingMethods, ICheckout, IPayment, IPromoCodeDiscount, CreatePaymentInput, CompleteCheckoutInput } from "./types"; export declare class CooperCheckoutAPI extends ErrorListener { loaded: boolean; checkout?: ICheckout; promoCodeDiscount?: IPromoCodeDiscount; billingAsShipping?: boolean; selectedShippingAddressId?: string; selectedBillingAddressId?: string; availableShippingMethods?: IAvailableShippingMethods; availablePaymentGateways?: PaymentGateway[]; payment?: IPayment; private saleorState; private jobsManager; private config; constructor(saleorState: CooperState, jobsManager: JobsManager, config: Config); 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; }