export type PreviewThemeDecision = { ok: true; } | { ok: false; changesetTheme: string | null; activeTheme: string | null; }; /** * Decide whether a `?changeset=` storefront preview may proceed under * the currently-active theme (spec 04 ยง 9.4). * * Returns `{ ok: true }` when: * - there is no preview token (a normal storefront request), or * - the token doesn't resolve to a changeset (nothing to preview), or * - the changeset's theme matches the active theme. * * Returns `{ ok: false, changesetTheme, activeTheme }` on a mismatch, so the * caller can choose the response (409 for JSON clients, 302 for browsers). * * `theme === theme` with JS equality already handles the NULL bucket * (`null === null` is `true`), so no `IS NOT DISTINCT FROM` is needed here. */ export declare function decidePreviewThemeMatch(token: string | null): Promise;