import { CartView, CartReservationView, CartGiftCardView } from '../orders.js'; /** * Parse a single raw reservation row into the normalized CartReservationView. * * Wire shape is contained here. Uses `??` (PascalCase first, camelCase * fallback) so a real `0` quantity / price is preserved. Numeric coercion via * Number(), status via String() -- byte-identical to the inline `.map` in * getCartByUUID. */ export declare function parseCartReservation(raw: unknown): CartReservationView; /** * Parse one applied gift card. * * `maskedCode` is all the server will say — the code itself is a bearer * instrument and this cart endpoint is public, keyed only by the cart UUID — so * removal is keyed by `giftCardId`. `amount` arrives in CENTS (the orders-service * column) and is converted to DOLLARS here, because every gift-card figure the * checkout UI handles downstream is in dollars. * * A missing or malformed amount parses to `null`, never 0. This value is what * the panel says a card COVERS; a fabricated $0 would understate coverage and * feed a wrong order ceiling back into the checkout. The consumer drops such an * entry instead of drawing it (mf#2383). */ export declare function parseCartGiftCard(raw: unknown): CartGiftCardView; /** * Parse a raw cart payload into the normalized CartView domain shape. * * Wire shape (RawCart) is contained inside this module and never escapes it. * Reconciles PascalCase and camelCase JSON tags via `??`. Reservations are * normalized through parseCartReservation. Byte-identical to the inline * normalization previously embedded in getCartByUUID. */ export declare function parseCart(raw: unknown): CartView;