UNPKG

feature-toggle-client

Version:

feature-toggle-client

14 lines (13 loc) 720 B
import { LDClient, LDOptions } from 'launchdarkly-js-client-sdk'; import { UserAccount } from './types/UserAccount'; import { Application } from './types/Application'; import { Contract } from './types/Contract'; export declare class FeatureToggleInstanceFactory { private client; private defaultOptions; private constructor(); getClient(): LDClient; static createSingleContext(payload: UserAccount | Application, ldclientSdkKey: string, options?: LDOptions): FeatureToggleInstanceFactory; static createMultiContext(ldclientSdkKey: string, user?: UserAccount, application?: Application, contract?: Contract, options?: LDOptions): FeatureToggleInstanceFactory; private static getSingleData; }