/** * Cart / customer id shapes — pure, no I/O. * * Shopify's cart id is `gid://shopify/Cart/?key=`. Everything on the Apptile side — the * customer metafield, the dashboard — stores the part after `Cart/`, **including** the `?key=`: * without that key the cart cannot be read back or mutated. */ /** GID → token (the part after `Cart/`, key included). Passes a bare token through unchanged. */ export declare function toCartToken(cartId: string | null | undefined): string | null; /** Token → GID. Passes an existing GID through unchanged. */ export declare function toCartGid(token: string | null | undefined): string | null; /** The backend keys the customer by number, not by GID. */ export declare function toNumericCustomerId(customerGid: string | null | undefined): string | null; /** Only a token carrying its access key can be mutated by the merge service. */ export declare function isMergeable(token: string | null): token is string; //# sourceMappingURL=ids.d.ts.map