/** * @jorvel/runtime — Federated Router (Phase-0/1 bridge) * * Goal: allow the host (shell) to provide the *router singleton instance* to * remotes via Module Federation shared modules. * * Design A: a shared singleton module. * * - Host calls `provideHostRouter(getRouter())` once during bootstrap. * - Remotes call `getFederatedRouter()` to access the same Router instance. * - If the host never provides one, remotes fall back to their local router. */ import type { Router } from './router.js'; /** * Bind the host router singleton for remotes to consume. * * Call this from the host app (shell) during startup. */ export declare function provideHostRouter(router: Router): void; /** * Returns the federated router if the host has provided one. * Otherwise returns the local singleton router. */ export declare function getFederatedRouter(): Router; /** @internal */ export declare function _resetFederatedRouter(): void; //# sourceMappingURL=federated-router.d.ts.map