import { type BrandingContextValue } from './BrandingProvider.js'; /** * THIS HOOK USED TO THROW, AND THE THROW REACHED PRODUCTION. * * `if (!ctx) throw new Error(...)` is the ordinary React idiom for a missing * provider, and it is right for a hook only developers can reach. This one is * not: it is called on anonymous, logged-out page views, where a throw is a * white screen for a visitor who has done nothing wrong. crm7#1603 recorded * 1,856 fatal errors over 80 days from exactly that — 87% of the error log. * * That issue was closed by mounting a provider in crm7. Then in conduit, and * throughput, and BSU, and R80.4 — five independent workarounds for a throw * nobody removed, leaving the next consumer rendered outside a provider to * recreate the incident in full. * * So the hook now DEGRADES instead of throwing: a null branding, which every * consumer already handles because `branding` is nullable inside a provider too. * * The developer signal is not lost, only moved off the user's screen. A missing * provider is still a real mistake, so it is reported once per session via * console.error in development. Once, not per render: a hook that fires on every * anonymous view would otherwise flood the console and train everyone to ignore * it, which is how a real warning becomes invisible. */ export declare function useBranding(): BrandingContextValue; //# sourceMappingURL=useBranding.d.ts.map