/** * Registry interface for the async SPFx component loader. `sp-loader.SPComponentLoader` is * registered as the implementation during assembly initialization, allowing packages that * can't depend on `sp-loader` (e.g. `sp-http-base`) to invoke async component loads via * `sp-core-library` instead. * * @internal */ export interface IAsyncComponentLoader { /** * Loads an SPFx component bundle by id (and optional version) and resolves with the * component's module exports. */ loadComponentById(id: string, version?: string): Promise; } /** * Registers the async component loader implementation. Called during assembly initialization * by the starter wrapper (with `sp-loader`'s `SPComponentLoader`) before any component code * runs, so `_getAsyncComponentLoader` is available to consumers from that point on. * * @internal */ export declare function registerAsyncComponentLoader(loader: IAsyncComponentLoader): void; /** * Returns the async component loader registered via `_registerAsyncComponentLoader`, or * `undefined` if it hasn't been registered yet. Used by the webpack runtime patch in * `AsyncComponentPlugin` for packages that route through `sp-core-library` instead of * `sp-loader`. * * @internal */ export declare function getAsyncComponentLoader(): IAsyncComponentLoader | undefined; //# sourceMappingURL=_asyncComponentLoader.d.ts.map