UNPKG

@alfresco/adf-core

Version:
34 lines (33 loc) 1.44 kB
import { Observable } from 'rxjs'; import { IDebugFeaturesService, IFeaturesService, FlagChangeset, WritableFeaturesServiceConfig, FlagSet, IWritableFeaturesService } from '../interfaces/features.interface'; import * as i0 from "@angular/core"; export declare class DebugFeaturesService implements IDebugFeaturesService { private overriddenFeaturesService; private writableFeaturesService; private config?; private readonly isInDebugModeSubject; private readonly isInDebugMode$; private readonly initSubject; get storageKey(): string; constructor(overriddenFeaturesService: IFeaturesService, writableFeaturesService: IFeaturesService & IWritableFeaturesService, config?: WritableFeaturesServiceConfig); isOn$(key: string): Observable<boolean>; isOff$(key: string): Observable<boolean>; /** * Gets the flags as an observable. * * @returns the observable that emits the flag changeset. */ getFlags$(): Observable<FlagChangeset>; /** * Resets the specified flags. * * @param flags The flags to reset. */ resetFlags(flags: FlagSet): void; enable(on: boolean): void; isEnabled$(): Observable<boolean>; private init; private waitForInitializationToFinish; static ɵfac: i0.ɵɵFactoryDeclaration<DebugFeaturesService, [null, null, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<DebugFeaturesService>; }