export type FederationRemote = { name: string; entryUrl: string; /** Optional Subresource Integrity hash, e.g. `sha384-...`. */ integrity?: string; }; export type LoadRemoteEntryOptions = { /** Max time (ms) to wait for the remote container global to appear after script load. */ containerGlobalTimeoutMs?: number; /** How frequently (ms) to poll for the container global. */ containerGlobalPollMs?: number; /** * Optional cache used to record successful remoteEntry loads. Cache stores * metadata only and never persists actual JS bytes — for true offline use a * service worker cache on `entryUrl`. */ cache?: boolean | RemoteEntryCache; /** TTL (ms) for cache entries. Default: 24h. */ cacheTtlMs?: number; /** * Allowed origins. When set, the loader rejects entryUrls whose origin is * not on the list. `*` matches a single subdomain label; `**` matches * multiple. */ allowedOrigins?: string[]; /** * `crossorigin` attribute on the injected `