import HttpClientConfiguration, { type IHttpClientConfiguration } from '../httpClient/HttpClientConfiguration'; /** * Flags interface for HttpClientConfiguration. * * @public */ export interface IAadHttpClientConfiguration extends IHttpClientConfiguration { } /** * Configuration for HttpClient. * * @remarks * The HttpClientConfiguration object provides a set of switches for enabling/disabling * various features of the HttpClient class. Normally these switches are set * (e.g. when calling HttpClient.fetch()) by providing one of the predefined defaults * from HttpClientConfigurations, however switches can also be changed via the * HttpClientConfiguration.overrideWith() method. * * @public */ export default class AadHttpClientConfiguration extends HttpClientConfiguration implements IAadHttpClientConfiguration { protected flags: IAadHttpClientConfiguration; /** * Constructs a new instance of HttpClientConfiguration with the specified flags. * The default values will be used for any flags that are missing or undefined. * If overrideFlags is specified, it takes precedence over flags. */ constructor(flags: IAadHttpClientConfiguration, overrideFlags?: IAadHttpClientConfiguration); /** * @override */ overrideWith(sourceFlags: IAadHttpClientConfiguration): AadHttpClientConfiguration; } /** * Standard configurations for AadHttpClient. * * @remarks * This interface provides standard predefined AadHttpClientConfiguration objects for use with * the AadHttpClient class. In general, clients should choose the latest available * version number, which enables all the switches that are recommended for typical * scenarios. (If new switches are introduced in the future, a new version number * will be introduced, which ensures that existing code will continue to function the * way it did at the time when it was tested.) * * @public */ export interface IAadHttpClientConfigurations { /** * This configuration turns off every feature switch for AadHttpClient. The fetch() * behavior will be essentially identical to the WHATWG standard API that * is documented here: * https://fetch.spec.whatwg.org/ */ readonly v1: AadHttpClientConfiguration; } export declare const predefinedConfigurations: IAadHttpClientConfigurations; //# sourceMappingURL=AadHttpClientConfiguration.d.ts.map