import { type FederationInfo } from '@softarc/native-federation/domain'; import { type InitFederationOptions, type ProcessRemoteInfoOptions } from './model/federation-info.js'; import { type ImportMap } from './model/import-map.js'; /** * Initializes the Native Federation runtime for the host application. * * This is the main entry point for setting up federation. It performs the following: * 1. Loads the host's remoteEntry.json to discover shared dependencies * 2. Loads each remote's remoteEntry.json to discover exposed modules * 3. Creates an ES Module import map with proper scoping * 4. Injects the import map into the DOM as a