export type Brand = 'gs' | 'sk'; /** * Hostname-based brand fallback for callers with no account/studio brand * signal yet: pre-auth render (before studio data loads) or an account with * no studio at all (e.g. platform Admin). Consumers own their own hostname * heuristics (env-aware, per-portal) — this is intentionally generic: * any hostname containing 'gostudent' resolves to 'gs', everything else to * 'sk'. Portals with more nuanced non-prod handling should compute their own * boolean/brand and pass it in via the `fallback` parameter of * `resolveBrand` instead of relying on this default. */ export declare function isSkBrand(hostname?: string): boolean; /** * Resolves the FE brand/theme from the account/studio's computed `brand` * field (as returned by `GET /studio/user` / `GET /studio/user/main`). * * The backend already derives and normalizes `brand` to `'sk' | 'gs'` — this * helper just passes a valid value through defensively (trimming whitespace, * normalizing casing) and falls back to hostname-based resolution when * `brand` is `undefined`/`null`/empty/unrecognized. That fallback covers: * pre-auth render (before studio data has loaded) and accounts with no * studio at all (e.g. platform Admin). * * Pure and side-effect free with respect to its `brand` argument — does not * read `window.location` itself unless the fallback path is taken (no * explicit `fallback` override supplied). */ export declare function resolveBrand(brand: Brand | string | null | undefined, fallback?: () => Brand): Brand; //# sourceMappingURL=resolveBrand.d.ts.map