UNPKG

@techsio/storefront-data

Version:

Medusa-first storefront data layer built on TanStack Query.

20 lines • 1.01 kB
import type { HttpTypes } from "@medusajs/types"; export type CheckoutCartWithId = { id?: string | null; }; export type ResolveCheckoutCartInputResult<TCart extends CheckoutCartWithId> = { resolvedCartId?: string; normalizedCart?: TCart | null; }; export declare const resolveCheckoutCartInput: <TCart extends CheckoutCartWithId>({ cartId, cart, }: { cartId?: string; cart?: TCart | null; }) => ResolveCheckoutCartInputResult<TCart>; export declare const resolveEffectiveCheckoutCart: <TCart>({ cartId, cart, getCachedCart, }: { cartId: string; cart?: TCart | null; getCachedCart: (cartId: string) => TCart | null; }) => TCart | null; export declare const resolveSelectedPaymentProviderId: (cart: HttpTypes.StoreCart | null | undefined) => string | undefined; export declare const resolveExistingPaymentCollection: (cart: HttpTypes.StoreCart | null | undefined, paymentProviderId: string) => HttpTypes.StorePaymentCollection | null; //# sourceMappingURL=checkout-flow-utils.d.ts.map