import { UserOptions } from "@module-federation/runtime/types"; /** Make some properties of a type optional. */ type MakeOptional = Omit & Partial>; /** * @public */ type FederationRemote = { name: string; entry: string; }; /** * @public */ type CreateInstanceOptions = MakeOptional, "remotes" | "plugins">; /** * @public */ interface FederationInstance { registerRemotes(remotes: FederationRemote[]): void; /** Load — and evaluate — a remote's expose, returning its module. */ loadRemote(id: string): Promise; /** * Warm a remote's assets (entry + exposes) without evaluating them, so a * later {@link loadRemote} resolves with no network waterfall. `exposes` * (the id after the remote name, e.g. `views/feed/panel`) narrows the warm to * specific exposes; omit it to warm the whole remote. */ preloadRemote(name: string, exposes?: string[]): Promise; } /** * @public */ declare function createInstance(options: CreateInstanceOptions): FederationInstance; export { createInstance as n, FederationInstance as t }; //# sourceMappingURL=module-federation-tUlbbgvL.d.ts.map