@kameleoon/javascript-sdk-core
Version:
Kameleoon JS SDK Core
13 lines (12 loc) • 547 B
TypeScript
import { EvaluationDataType } from '../../targeting/types';
import { ConditionDataType, ICondition } from './types';
import { Result } from 'ts-res';
import { KameleoonError } from '../../kameleoonError';
export declare class TargetExperimentCondition implements ICondition {
private variationMatchType?;
private variationId;
private experimentId;
constructor({ variationMatchType, variation, experiment, }: ConditionDataType);
evaluate(data: EvaluationDataType): Result<boolean, KameleoonError>;
private checkCondition;
}