import { type ServiceScope, ServiceKey } from '@microsoft/sp-core-library'; import AadHttpClient from './AadHttpClient'; /** * Returns a preinitialized version of the AadHttpClient for a given resource url. * For more information: {@link https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient} * * @public */ export default class AadHttpClientFactory { /** * The service key for AadHttpClientFactory. */ static readonly serviceKey: ServiceKey; private _serviceScope; /** * @internal */ constructor(serviceScope: ServiceScope); /** * Returns an instance of the AadHttpClient that communicates with the current tenant's configurable * Service Principal. * @param resourceEndpoint - The target AAD application's resource endpoint. */ getClient(resourceEndpoint: string): Promise; /** * Returns an instance of the AadHttpClient that communicates with the preconfigured * Service Principal. * @param resourceEndpoint - The target AAD application's resource endpoint. * @internal */ _getStandardClient(resourceEndpoint: string): Promise; } //# sourceMappingURL=AadHttpClientFactory.d.ts.map