/** * `@tiledev/sdk-apptile-cart-sync` — the shopper's cart, shared across devices and the web store. * * (This is the platform's "Cart Assist".) Apptile keeps a pointer to the customer's cart on the * customer record; this SDK reports which cart this device is on (up) and adopts the shared one when * the pointer names a different cart (down), folding the local cart in first. Signed-in shoppers only; * every step degrades to "keep the local cart". * * An app on `@tiledev/sdk-shopify` mounts the Shopify host and keeps only its settings and its toast: * * ```tsx * import { * configureCartSync, signedInShopifyCustomer, ShopifyCartSyncHost, * } from "@tiledev/sdk-apptile-cart-sync"; * * export const cartSync = configureCartSync({ * config: { enabled: true, apiUrl, mergeApiUrl }, * appId, // Apptile engine app id (shared with Cart Hold) * shop: storeDomain, * customerAccountRequest: signedInShopifyCustomer.request, * getAccessToken: signedInShopifyCustomer.getAccessToken, * storage: AsyncStorage, * }); * * // inside , once: * * ``` * * One entry (decided 2026-10-06, Head of Engineering, "C · Main entry"): the React triggers and the * Shopify host ship from this entry, not from subpaths. A subpath such as `./shopify` is reachable * only through the package's `exports` map, which a consumer resolving the old way (node10, a bundler * or test runner that ignores `exports`) cannot see; apps test unpublished SDKs through a * `src/__local__/` copy that only redirects the package's main entry; and the core already needs * `@tiledev/sdk-shopify` at run time (the attribution helpers), so a subpath would not have made it * optional. Cost: importing this entry pulls in `react`, `react-native` and `@tiledev/sdk-shopify`. */ export { CartSyncClient, configureCartSync, getCartSyncClient, DEFAULT_MESSAGES, } from "./client"; export { toCartToken, toCartGid, toNumericCustomerId, isMergeable } from "./ids"; export { CART_SYNC_NAMESPACE, ACTIVE_CART_KEY, CHECKED_OUT_CARTS_KEY, POINTER_QUERY, } from "./types"; export type * from "./types"; export { useCartSync, useCartSyncCheckedOut } from "./react"; export type { UseCartSyncOptions } from "./react"; export { ShopifyCartSyncHost, useMarkCartCheckedOut } from "./shopifyHost"; export { syncsOnShopifyEvent, checkedOutCartIdOf } from "./hostEvents"; export type { ShopifyCartSyncHostProps } from "./shopifyHost"; export { cartSyncReady, signedInWithShopify, signedInShopifyCustomer, requestCartSync, syncWhenAppComesBack, readCartLines, addCartLines, readCartAttributes, writeCartAttributes, } from "./shopify"; export type { CartSyncReadiness, AppStateEvents } from "./shopify"; //# sourceMappingURL=index.d.ts.map