/** * Support deep-link flow: callers pass `?org=…&tenant=…` in the URL * to override the workspace/tenant the Apollo auth link would read * from storage. Return value is shaped for direct use as the Apollo * `context` option on a query/mutation so the headers reach the * gateway on a per-request basis. `undefined` means no overrides * are present, so callers can spread it without adding empty * headers to every request. * * Security boundary: these headers DO NOT grant cross-tenant access. * `wspace-public-gateway` lists `x-tenant-id` (and the other * `x-actor-*` headers) in `SPOOF_SENSITIVE_HEADERS` and scrubs them * from `req.headers` before injecting the gateway-verified set, so * a crafted deep-link (`?org=victim&tenant=victim`) does NOT * authenticate the victim's session as the attacker's chosen tenant * — the actor identity in `x-actor-id` is always gateway-derived * from the auth token, and every subgraph enforces `@rbac` against * that. The override is honoured at the gateway only for * `super_admin` callers (latency hint on token issuance); for * regular users it's effectively informational and the RBAC * directive on the resolver decides. See * `gateways/wspace-public-gateway/src/handlers.ts:574-668`. */ export declare function useTenantContext(): { headers: Record; } | undefined;