import { type ServiceScope } from '@microsoft/sp-core-library'; import type { ClientOptions, GraphRequest, Options, Client } from '@microsoft/microsoft-graph-client'; /** * MSGraphClient is used to perform REST calls against Microsoft Graph. * * @remarks The Microsoft Graph JavaScript client library is a lightweight wrapper around the * Microsoft Graph API. This class allows developers to start making REST calls to MSGraph without * needing to initialize the the MSGraph client library. If a custom configuration is desired, * the MSGraphClient api function needs to be provided with that custom configuration for * every request. * * For more information: {@link https://github.com/microsoftgraph/msgraph-sdk-javascript} * * @public */ export default class MSGraphClientV3 { private static _instance; private static _internalInstance; private static _graphBaseUrl; private _isInternal; private _consumerComponentManifest; private _requestRateMonitor; /** * @param serviceScope - Provides services for the MSGraphClient to consume. * * @internal */ constructor(serviceScope: ServiceScope, options: Options | undefined, clientOptions: ClientOptions | undefined, internalClient?: boolean); /** * All calls to Microsoft Graph are chained together starting with the api function. * * @remarks Path supports the following formats: * * me * * /me * * https://graph.microsoft.com/v1.0/me * * https://graph.microsoft.com/beta/me * * me/events?$filter=startswith(subject, 'ship') * * The authProvider and baseUrl option should not be used, as they have already been * provided by the framework. See the official documentation here: * https://github.com/microsoftgraph/msgraph-sdk-javascript * * @param path - The path for the request to MSGraph. */ api(path: string): GraphRequest; /** * Gets the instance of the instantiated Client object from Microsoft Graph SDK. */ get client(): Client; private _createGraphClientInstance; private _createGraphClientInstanceWithMiddleware; private _createInternalGraphClientInstance; private _createClientInstance; } //# sourceMappingURL=MSGraphClientV3.d.ts.map