import { EvalContext, FeatureResult, Experiment, Result, StickyAttributeKey, StickyAssignmentsDocument, FeatureApiResponse, Options, ClientOptions } from "./types/growthbook"; import { StickyBucketService } from "./sticky-bucket-service"; export declare const EVENT_FEATURE_EVALUATED = "Feature Evaluated"; export declare const EVENT_EXPERIMENT_VIEWED = "Experiment Viewed"; export declare function evalFeature(id: string, ctx: EvalContext): FeatureResult; export declare function runExperiment(experiment: Experiment, featureId: string | null, ctx: EvalContext): { result: Result; trackingCall?: Promise; }; export declare function getExperimentResult(ctx: EvalContext, experiment: Experiment, variationIndex: number, hashUsed: boolean, featureId: string | null, bucket?: number, stickyBucketUsed?: boolean): Result; export declare function getHashAttribute(ctx: EvalContext, attr?: string, fallback?: string): { hashAttribute: string; hashValue: any; }; export declare function getStickyBucketAttributeKey(attributeName: string, attributeValue: string): StickyAttributeKey; export declare function getAllStickyBucketAssignmentDocs(ctx: EvalContext, stickyBucketService: StickyBucketService, data?: FeatureApiResponse): Promise>; export declare function getStickyBucketAttributes(ctx: EvalContext, data?: FeatureApiResponse): Record; export declare function decryptPayload(data: FeatureApiResponse, decryptionKey: string | undefined, subtle?: SubtleCrypto): Promise; export declare function getApiHosts(options: Options | ClientOptions): { apiHost: string; streamingHost: string; apiRequestHeaders?: Record; streamingHostRequestHeaders?: Record; }; export declare function getExperimentDedupeKey(experiment: Experiment, result: Result): string; //# sourceMappingURL=core.d.ts.map