import { LocalStorageManager } from "../../data"; import { ErrorListener } from "../../helpers"; import { JobsManager } from "../../jobs"; import { CooperState } from "../../state"; import { ApolloClientManager } from "../../data/ApolloClientManager"; import { Config } from "../../types"; import { IDiscount, IItems, IShippingPrice, ISubtotalPrice, ITotalPrice } from "./types"; export declare class CooperCartAPI extends ErrorListener { loaded: boolean; items: IItems; totalPrice: ITotalPrice; subtotalPrice: ISubtotalPrice; shippingPrice: IShippingPrice; discount?: IDiscount; private apolloClientManager; private jobsManager; private localStorageManager; private cooperState; private config; constructor(localStorageManager: LocalStorageManager, apolloClientManager: ApolloClientManager, cooperState: CooperState, jobsManager: JobsManager, config: Config); addItem: (variantId: string, quantity: number, channel: string) => Promise<{ error: string; pending?: undefined; } | { pending: boolean; error?: undefined; }>; removeItem: (variantId: string, channel?: string | undefined) => Promise<{ pending: boolean; }>; subtractItem: (variantId: string, channel?: string | undefined) => Promise<{ pending: boolean; }>; updateItem: (variantId: string, quantity: number, channel?: string | undefined) => Promise<{ pending: boolean; }>; }