/** * Compile-time-only type-accuracy check for SDK 0.53.0's * `superpassEmployee` field (SuperPass in-game handoff, API PR #71). * * Same pattern as types.cms-guide.typecheck.ts: no runtime assertions, * never imported by index.ts — `bun:test` won't pick it up (name doesn't * match `*.test.ts`) and `bun build` won't bundle it, but * `tsc --noEmit` / `tsc --emitDeclarationOnly` fails loudly if the types * drift from the wire contract: * * - ONE named `SuperpassEmployee` shape is shared by BOTH wire surfaces * (REST order item and SSE order-update item) — the identity pins * below break if either site reverts to a divergent inline literal, * so a single set of exact-shape/negative assertions covers both. * - `OrderItem.superpassEmployee` accepts an assigned-employee object AND * `null` (the serializer always emits one of the two on the customer * order GETs), with `profileUrl: string` — `""` is valid, `null` is not. * - The field stays OPTIONAL on both shapes (omission fixtures below * break if it becomes required — `OrderItem` also serves responses * that never run through serializeCustomerItem). * - The SSE `OrderUpdateEvent` item side is object-or-ABSENT, never null. * - `@ts-expect-error` negatives keep the named shape exact: both keys * required, both `string` (never null), no extra keys leaking in. */ import type { OrderItem, SuperpassEmployee } from "./types"; export declare const _typecheckOnly: { _restIsShared: SuperpassEmployee; _sseIsShared: SuperpassEmployee; _sharedToRest: SuperpassEmployee; _sharedToSse: SuperpassEmployee; _assigned: SuperpassEmployee; _unassigned: null; _sseItem: { productName: string; status: string; cdKey?: string; superpassEmployee?: SuperpassEmployee; }; _itemWithoutEmployee: OrderItem; _sseItemWithoutEmployee: { productName: string; status: string; cdKey?: string; superpassEmployee?: SuperpassEmployee; }; _missingProfileUrl: SuperpassEmployee; _nullUsername: SuperpassEmployee; _nullProfileUrl: SuperpassEmployee; _sseEmployeeNeverNull: { productName: string; status: string; cdKey?: string; superpassEmployee?: SuperpassEmployee; }; _noExtraKeys: SuperpassEmployee; _exactShape: { username: string; profileUrl: string; }; };