-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.d.ts
More file actions
66 lines (58 loc) · 2.88 KB
/
index.d.ts
File metadata and controls
66 lines (58 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Declaration file for React Native Split Software SDK
// Project: https://www.split.io/
// Definitions by: Nico Zelaya <https://github.com/NicoZelaya/>
/// <reference path="./splitio.d.ts" />
export = JsSdk;
declare module JsSdk {
/**
* Split.io SDK factory function.
*
* The settings parameter should be an object that complies with the SplitIO.IReactNativeSettings.
* For more information read the corresponding article: @see {@link https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/react-native-sdk/#configuration}
*/
export function SplitFactory(settings: SplitIO.IReactNativeSettings): SplitIO.IBrowserSDK;
/**
* Persistent storage. By default, it uses the Web LocalStorage API if available.
* Consider providing a custom storage wrapper, like [AsyncStorage](https://github.com/react-native-async-storage/async-storage), for Android and iOS targets.
*
* Example:
* ```
* import AsyncStorage from '@react-native-async-storage/async-storage';
* import { SplitFactory, InLocalStorage } from '@splitsoftware/splitio-react-native';
*
* const SDK_CONFIG = {
* ...
* storage: InLocalStorage({
* wrapper: AsyncStorage,
* }),
* }
* ```
*
* @see {@link https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/react-native-sdk/#configure-cache-behavior}
*/
export function InLocalStorage(options?: SplitIO.InLocalStorageOptions): SplitIO.StorageSyncFactory;
/**
* Creates a logger instance that enables descriptive log messages with DEBUG log level when passed in the factory settings.
*
* @see {@link https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/react-native-sdk/#logging}
*/
export function DebugLogger(): SplitIO.ILogger;
/**
* Creates a logger instance that enables descriptive log messages with INFO log level when passed in the factory settings.
*
* @see {@link https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/react-native-sdk/#logging}
*/
export function InfoLogger(): SplitIO.ILogger;
/**
* Creates a logger instance that enables descriptive log messages with WARN log level when passed in the factory settings.
*
* @see {@link https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/react-native-sdk/#logging}
*/
export function WarnLogger(): SplitIO.ILogger;
/**
* Creates a logger instance that enables descriptive log messages with ERROR log level when passed in the factory settings.
*
* @see {@link https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/react-native-sdk/#logging}
*/
export function ErrorLogger(): SplitIO.ILogger;
}