1 | export declare type InitializeOptions = {
|
2 | androidWriteKey?: string;
|
3 | iosWriteKey?: string;
|
4 | };
|
5 | export declare type CommonOptions = {
|
6 | [key: string]: any;
|
7 | } | null;
|
8 | export declare function initialize(options: InitializeOptions): void;
|
9 | export declare function identify(userId: string): void;
|
10 | export declare function identifyWithTraits(userId: string, traits: {
|
11 | [key: string]: any;
|
12 | }, options?: CommonOptions): void;
|
13 | export declare function group(groupId: string): void;
|
14 | export declare function groupWithTraits(groupId: string, traits: {
|
15 | [key: string]: any;
|
16 | }, options?: CommonOptions): void;
|
17 | export declare function alias(newId: string, options?: CommonOptions): Promise<boolean>;
|
18 | export declare function reset(): void;
|
19 | export declare function track(event: string): void;
|
20 | export declare function trackWithProperties(event: string, properties: {
|
21 | [key: string]: any;
|
22 | }, options?: CommonOptions): void;
|
23 | export declare function screen(screenName: string): void;
|
24 | export declare function screenWithProperties(event: string, properties: {
|
25 | [key: string]: any;
|
26 | }, options?: CommonOptions): void;
|
27 | export declare function flush(): void;
|
28 | export declare function getEnabledAsync(): Promise<boolean>;
|
29 | export declare function setEnabledAsync(enabled: boolean): Promise<void>;
|