import * as lodash from 'lodash'; import { g as BeamBaseAPIConfig, h as TCartApi, M as MemoizedLast } from './utils-BPcZ5h8J.esm.js'; type BeamCartAPIConfig = BeamBaseAPIConfig & { storeId: number; domain?: string; statsigExperiment?: string; }; type BeamCartValues = { cartId?: string; itemCount?: number; subtotal?: number; currencyCode?: string; } & Partial; /** * Sends cart information to Beam * Memoized based on previous arguments - if the objects are deep-equal, no update is made. * @side-effects Sets beam_cart cookie, set cart data in localstorage * @example * const BeamConfig = { apiKey: 'abc-123' } * const { beamCartId } = await updateCart(BeamConfig, { beamCartId, itemCount, subtotal, currencyCode }) * */ declare const updateCart: lodash.DebouncedFuncLeading Promise>>; export { updateCart as u }; export type { BeamCartAPIConfig as B, BeamCartValues as a };