import { type ActiveEcsClientFlights } from '@msinternal/ecs-flight'; /** * NOT FOR USE BY THIRD PARTY DEVELOPERS * * This class supports Microsoft's internal deployment workflow. * For more information, see https://microsoft.sharepoint.com/teams/odsp/_layouts/OneNote.aspx * ?id=/teams/odsp/Shared%20Documents/MI-6%20Team/MI-6%20Team/Global/SPO%20Flighting * * @privateRemarks * SPFlight is currently being reexported by sp-client-base. For GA, this will be sorted out by * VSO 278235 which will move this class back into sp-client-base (sp-core-library). * * @internal */ export default class SPFlight { private static _isInitialized; private static _isInitializedEcs; /** * List of SharePoint flight feature IDs that are forced to be enabled * through the debugFlights query string parameter. * * TODO: Delete this field when graduating refactorDebugFlightsAndKillswitchesInitKS, * use _overrides[flightId] instead of _forceEnabledFlights.indexOf(flightId) !== -1 */ private static _forceEnabledFlights; /** * List of SharePoint flight feature IDs that are forced to be disabled * through the debugFlights query string parameter. * * TODO: Delete this field when graduating refactorDebugFlightsAndKillswitchesInitKS, * use _overrides[flightId] === false instead of _forceDisabledFlights.indexOf(flightId) !== -1 */ private static _forceDisabledFlights; /** * Array of bits (indexed by flight number, where 1 means that flight is enabled). */ private static _enabledFlightsMap; /** * Maps flight feature IDs to their override status, if any. */ private static _overrides; /** * RESERVED FOR INTERNAL USAGE. This method is invoked automatically by the system shell. * The application code should not call it directly. */ static initialize(flights: number[]): void; /** * @public * Initialize ECS Client Flights * @param ecsFlights - ECS Flights int array */ static initializeEcs(ecsFlights: Int32Array): void; /** * Return true if the debug flight is enabled. */ static get isDebugFlightEnabled(): boolean; /** * RESERVED FOR INTERNAL USAGE. This method is invoked automatically by the system shell. * The application code should not call it directly. * * If merge is true, the incoming overrides will be added to existing overrides rather than replacing them. */ static setDebugFlights(debugFlights?: string, merge?: boolean): void; /** * NOT FOR USE BY THIRD PARTY DEVELOPERS * * This function will determine if a flight is enabled in the global list. */ static isEnabled(flight: number): boolean; /** * @public * Check if ECS Flight is enabled * @param flightName - Name of the ECS Rollout */ static isEcsFlightEnabled(flightName: keyof typeof ActiveEcsClientFlights.EcsClientFlightInfo): boolean; private static _isEnabledIgnoreOverrides; private static _validateDebugFlights; private static _initializeDebugFlights; private static _getCookieValue; private static _updateOverrides; private static _setFeatureSettingsToCookie; } //# sourceMappingURL=SPFlight.d.ts.map