• Evaluates the rules for a given campaign and feature based on the provided context. This function checks for whitelisting and pre-segmentation conditions, and if applicable, sends an impression for the variation shown.

    Parameters

    • settings: SettingsModel

      The settings configuration for the evaluation.

    • feature: FeatureModel

      The feature being evaluated.

    • campaign: CampaignModel

      The campaign associated with the feature.

    • context: ContextModel

      The user context for evaluation.

    • evaluatedFeatureMap: Map<string, unknown>

      A map of evaluated features.

    • megGroupWinnerCampaigns: Map<number, number>

      A map of MEG group winner campaigns.

    • storageService: StorageService

      The storage service for persistence.

    • decision: any

      The decision object that will be updated based on the evaluation.

    Returns Promise<Record<string, any>>

    A promise that resolves to a tuple containing the result of the pre-segmentation and the whitelisted object, if any.