import { EvershopRequest } from '../../../../../types/request.js'; import { EvershopResponse } from '../../../../../types/response.js'; /** * Public anonymous tracking page. The link in lifecycle emails carries a TTL'd * HMAC-signed JWT (see `oms/services/anonymousTrackingToken.ts`). This handler: * * - Reads `?token=…` from the query string. * - Verifies the token. On success, exposes the order UUID embedded in the * token (NOT `request.params.uuid`) to the GraphQL context, so a customer * can't paste a different UUID into the URL and view someone else's order. * - On expired/invalid token, exposes a status code (`expired`, `invalid`, * `no_secret`, `mismatch`) to the context so the page renders a friendly * "this link is no longer valid" state with a CTA to the logged-in * `/account/orders` page. * * The path param `:uuid` is informational only — if it disagrees with the * token's embedded UUID, we treat the request as tampered and render the * invalid state. */ declare const _default: (request: EvershopRequest, response: EvershopResponse, next: any) => void; export default _default;