import { Order, PurchasedTicket } from '../types.js'; /** * Parse a raw purchased-ticket payload into the normalized PurchasedTicket domain shape. * * Wire shape (ApiTicket) is contained inside this module. Uses `||` chains matching * the old transformer exactly -- byte-identical to previous behavior. Throw behavior * preserved from old mapper: null/undefined input (property access on a nullish value) throws as the old code did. */ export declare function parsePurchasedTicket(raw: unknown): PurchasedTicket; /** * Parse a raw order payload into the normalized Order domain shape. * * Wire shape (ApiOrder) is contained inside this module and never escapes it. * Uses `||` chains matching the old transformer exactly (all money fields use `||`, * not `??` -- 0-valued amounts fall through to next variant, same as old) -- * byte-identical to previous behavior. Throw behavior preserved from old mapper: * null/undefined input (property access on a nullish value) or a non-array tickets field throws as the old code did. */ export declare function parseOrder(raw: unknown): Order; /** * Back-compat alias -- existing call sites using transformTicket continue * to work unchanged. */ export declare const transformTicket: typeof parsePurchasedTicket; /** * Back-compat alias -- existing call sites using transformOrder(apiOrder) * continue to work unchanged. */ export declare const transformOrder: typeof parseOrder; /** * Transform order for display on success page. * * Returns a simplified object with display-ready values. */ export declare function transformOrderForDisplay(raw: unknown): { orderId: string; displayOrderId: string; email: string; customerName: string; total: number; formattedTotal: string; ticketCount: number; status: string; };