//@flow
import * as React from 'react';
import { type ABTestingConfig } from '@appannie/ab-testing';
export type { ABTestingConfig } from '@appannie/ab-testing';

declare export var ABTestingController: React.ComponentType<{
    config: ABTestingConfig,
    userId: number | string,
    userProfile: {
        [key: string]: string,
    },
    children: React.Node,
}>;
declare export function useCohortOf(experimentName: string): string;
declare export function useABTestingController(): {
    hasExperiment: (experimentName: string) => boolean;
    getCohort: (experimentName: string) => string;
};
