import Guid from './Guid'; /** * This class supports Microsoft's internal deployment workflow. * * @internal */ export default class SPKillSwitch { private static _isInitialized; private static _activatedKillSwitches; /** * RESERVED FOR INTERNAL USAGE. This method is invoked automatically by the system shell. * The application code should not call it directly. */ static initialize(killSwitchGuids: { [key: string]: boolean; }): void; /** * RESERVED FOR INTERNAL USAGE. This method is invoked automatically by the system shell. * The application code should not call it directly. */ static setDebugKillswitches(debugKillswitches?: string): void; /** * Returns true if the switch is activated. * @param killSwitch - identifier for the kill switch * @returns true if the switch is activated, i.e. we should revert to the old behavior * * @remarks * Kill switches must be documented in the following pattern (note, the '/' character * is escaped below but should not be in your code): * ``` * SPKillSwitch.isActivated('00000000-0000-0000-0000-000000000000', \/* 'MM/DD/YYY', 'My Feature Name' *\/) * ``` */ static isActivated(killSwitchGuid: string): boolean; /** * * Returns true if the switch is activated. * @param killSwitchGuid - identifier for the kill switch * @param date - @deprecated This parameter does not impact return value of the function. It * documents the date when the kill switch was introduced, to facilitate bulk cleanup. * The date should be updated if additional fixes are made inside the block. * @param featureName - @deprecated This parameter does not impact return value of the function. * It is an informational tag to facilitate bulk cleanup, e.g. by allowing teams * to search for switches related to their feature. * @returns true if the switch is activated, i.e. we should revert to the old behavior * * @deprecated Use `isActivated(killSwitch: string)` */ static isActivated(killSwitchGuid: Guid, date: string, featureName: string): boolean; } //# sourceMappingURL=SPKillSwitch.d.ts.map