import type { IClientSideComponentManifest } from '@microsoft/sp-module-interfaces'; import type { ISPComponentLoader } from '../interfaces/ISPComponentLoader'; import type { ILoadScriptOptions } from '../interfaces/ILoadScriptOptions'; import type { IPreloadedData } from '../interfaces/IPreloadedData'; /** * Component loader. * Needs to be initialized with an implemented `ISPComponentLoader`. * * @public */ export declare class SPComponentLoader { private static _instance; /** * Initializes the component loader with an implementation. * Must be called once before it can be used. * * @internal */ static _initialize(componentLoader: ISPComponentLoader): void; /** * {@inheritDoc _ISPComponentLoader._startApplication} * * @internal */ static _startApplication(preloadedData: IPreloadedData): Promise; /** * {@inheritdoc _ISPComponentLoader._preloadComponents} * * @internal */ static _preloadComponents(): void; /** * {@inheritDoc _ISPComponentLoader.loadCss} */ static loadCss(url: string): void; /** * {@inheritDoc _ISPComponentLoader.loadScript} */ static loadScript(url: string, options?: ILoadScriptOptions): Promise; /** * {@inheritDoc _ISPComponentLoader.loadComponent} */ static loadComponent(manifest: IClientSideComponentManifest): Promise; /** * {@inheritDoc _ISPComponentLoader.loadComponentById} * * @public */ static loadComponentById(id: string, version?: string): Promise; /** * {@inheritDoc _ISPComponentLoader.registerManifests} * * @alpha */ static registerManifests(manifests: IClientSideComponentManifest[]): void; /** * {@inheritDoc _ISPComponentLoader.refreshWebPartManifests} * * @alpha */ static refreshWebPartManifests(manifests: IClientSideComponentManifest[]): void; /** * {@inheritDoc _ISPComponentLoader._manifestReferences} * * @internal */ static _getManifestReferences(): IClientSideComponentManifest[]; /** * Returns static copies of all the manifests. * * @public * @deprecated this method will be removed in a future release. */ static getManifests(): IClientSideComponentManifest[]; /** * {@inheritDoc _ISPComponentLoader.tryGetLoadedComponent} * * @alpha */ static tryGetLoadedComponent(manifest: IClientSideComponentManifest): TComponent | undefined; /** * {@inheritDoc _ISPComponentLoader.tryGetManifestById} * * @alpha */ static tryGetManifestById(id: string, version?: string): IClientSideComponentManifest | undefined; /** * {@inheritdoc _ISPComponentLoader.requestManifest} * * @alpha */ static requestManifest(id: string, version?: string): Promise; /** * {@inheritDoc _ISPComponentLoader._loadDebugManifestsForWorkbench} * * @internal */ static _loadDebugManifestsForWorkbench(manifestsFileUrl: string): Promise; } //# sourceMappingURL=SPComponentLoader.d.ts.map