UNPKG

@optimizely/optimizely-sdk

Version:

JavaScript SDK for Optimizely Feature Experimentation, Optimizely Full Stack (legacy), and Optimizely Rollouts

36 lines (35 loc) 1.78 kB
/** * Copyright 2019-2025, Optimizely * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import 'fast-text-encoding'; import 'react-native-get-random-values'; import { Client, Config } from './shared_types'; import { EventDispatcher } from './event_processor/event_dispatcher/event_dispatcher'; /** * Creates an instance of the Optimizely class * @param {Config} config * @return {Client|null} the Optimizely client object * null on error */ export declare const createInstance: (config: Config) => Client; export declare const getSendBeaconEventDispatcher: () => EventDispatcher | undefined; export { default as eventDispatcher } from './event_processor/event_dispatcher/default_dispatcher.browser'; export { createPollingProjectConfigManager } from './project_config/config_manager_factory.react_native'; export { createForwardingEventProcessor, createBatchEventProcessor } from './event_processor/event_processor_factory.react_native'; export { createOdpManager } from './odp/odp_manager_factory.react_native'; export { createVuidManager } from './vuid/vuid_manager_factory.react_native'; export * from './common_exports'; export * from './export_types'; export declare const clientEngine: string;