import * as t from "io-ts"; export declare enum FeatureFlagEnum { ALL = "ALL", BETA = "BETA", CANARY = "CANARY", NONE = "NONE" } export declare const FeatureFlag: t.Type; export type FeatureFlag = t.TypeOf; /** * Return a function that takes an input of type T and returns whether it's eligible for the feature, * based on the feature flag level: * * "NONE" -> no one is enabled * "BETA" -> only user that pass the `isUserBeta` check are enabled * "CANARY" -> only user that pass the `isUserBeta` or the `isUserCanary` check are enabled * "ALL" -> every user is enabled * * @param isUserBeta The function that checks if the user is enabled for beta testing * @param isUserCanary The function that checks if the user is enabled for canary testing * @param featureFlag The Feature Flag level defined */ export declare const getIsUserEligibleForNewFeature: (isUserBeta: (i: T) => boolean, isUserCanary: (i: T) => boolean, featureFlag: FeatureFlag) => (i: T) => boolean;