import { Datafile, Feature } from './Config'; import Storage from './Storage'; declare class Engine { static readonly TOTAL_BUCKETS = 10000; static readonly TRAFFIC_ALLOCATION_SALT = "tas"; private config; private bucketer; private evaluator; private userId?; private attributes?; private storage?; private cache; constructor({ datafile, userId, attributes, storage }: { datafile: Datafile; storage?: Storage; userId?: string; attributes?: Record; }); private computeKey; private getForcedVariation; getUserId(): string | undefined; getAttributes(): Record | undefined; setUserId(userId: string): void; setAttributes(attributes?: Record): void; setForcedVariation(experimentId: string, variationId: string): void; isFeatureEnabled(featureId: string, userId?: string, attributes?: Record): boolean | null; getFeature(featureId: string): Feature; getEnabledFeatures(userId?: string, attributes?: Record): { [featureId: string]: boolean; }; getVariationId(experimentId: string, userId?: string, attributes?: Record): string | null; getVariationIds(userId?: string, attributes?: Record): { [experimentId: string]: string; }; } export default Engine;