/** * The SharePoint Framework loader * * @remarks * Built on familiar standards such as RequireJS and WebPack, * the loader is the first part of the SharePoint Framework to load on a page. * It manages versioning and loading of client-side components. * * @packagedocumentation */ import type { IClientSideComponentManifest } from '@microsoft/sp-module-interfaces'; import type { IODataBasePermission } from '@microsoft/sp-odata-types'; import type { IODataContextWebInformation } from '@microsoft/sp-odata-types'; import type { IODataList } from '@microsoft/sp-odata-types'; import type { IODataListItem } from '@microsoft/sp-odata-types'; import type { IODataNavigationNodeCollection } from '@microsoft/sp-odata-types'; import type { _IODataPageContextInfo } from '@microsoft/sp-odata-types'; import type { IODataUser } from '@microsoft/sp-odata-types'; import type { IODataWeb } from '@microsoft/sp-odata-types'; import { ServiceScope } from '@microsoft/sp-core-library'; /* Excluded from this release type: _APP_WORKLOAD_QSP */ /* Excluded from this release type: _IAssemblyComponent */ /* Excluded from this release type: _IDebugData */ /* Excluded from this release type: _IErrorInformation */ /* Excluded from this release type: _IExtendedPreloadedData */ /* Excluded from this release type: _IframeLoadRedirector */ /** * Options for the loadScript() method in ISPComponentLoader * * @public */ export declare interface ILoadScriptOptions { /** * If set, the loaded script will be stored in a global variable under this name. */ globalExportsName?: string; } /* Excluded from this release type: _IManifestStoreEntry */ /* Excluded from this release type: _IMinimalPreloadedData */ /* Excluded from this release type: _INCLUDE_APP_WORKLOAD */ /* Excluded from this release type: _IODataPageContextInfo */ /* Excluded from this release type: _IPreloadedCustomAction */ /* Excluded from this release type: _IPreloadedData */ /* Excluded from this release type: _ISPComponentLoader */ /* Excluded from this release type: _ManifestProvider */ /* Excluded from this release type: _ManifestStore */ /* Excluded from this release type: _OldManifestStoreShim */ /** * Component loader. * Needs to be initialized with an implemented `ISPComponentLoader`. * * @public */ export declare class SPComponentLoader { private static _instance; /* Excluded from this release type: _initialize */ /* Excluded from this release type: _startApplication */ /* Excluded from this release type: _preloadComponents */ /** * {@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; /* Excluded from this release type: registerManifests */ /* Excluded from this release type: refreshWebPartManifests */ /* Excluded from this release type: _getManifestReferences */ /** * Returns static copies of all the manifests. * * @public * @deprecated this method will be removed in a future release. */ static getManifests(): IClientSideComponentManifest[]; /* Excluded from this release type: tryGetLoadedComponent */ /* Excluded from this release type: tryGetManifestById */ /* Excluded from this release type: requestManifest */ /* Excluded from this release type: _loadDebugManifestsForWorkbench */ } /* Excluded from this release type: _SPLoaderFlights */ /* Excluded from this release type: _SPStarter */ export { }