import { Unleash } from "unleash-client"; import winston from "winston"; import { FeatureToggleDTO } from "./dtos/feature-toggle.dto"; import { IFeatureControlContext } from "./interfaces/feature-control-context.interface"; export declare class FeatureControlService { private readonly loggerService; private readonly unleashClient; constructor(loggerService: winston.Logger, unleashClient: Unleash); getFeatures({ userID }: { userID?: number; }): FeatureToggleDTO[]; getFeature(name: string, { userID, }?: { userID?: number; }): FeatureToggleDTO | undefined; /** * Use the intercept http header transfer them to the feature control context. */ isEnabled(name: string): boolean; isEnabledUsingContext(name: string, explicitContext: IFeatureControlContext): boolean; isEnabledUsingMergedContext(name: string, explicitContext: IFeatureControlContext): boolean; } //# sourceMappingURL=feature-control.service.d.ts.map