UNPKG

599 BTypeScriptView Raw
1export declare class AnalyticsClient {
2 private userTraits?;
3 private rudderstackClient?;
4 private _userId?;
5 private _version?;
6 get userId(): string | undefined;
7 get version(): string | undefined;
8 flush(): Promise<void>;
9 initializeClient(rudderstackWriteKey: string, rudderstackDataPlaneURL: string, packageVersion: string): void;
10 identifyUser(userId: string, traits: {
11 [key: string]: any;
12 }): void;
13 logEvent(name: string, properties?: any): void;
14 private getContext;
15}
16declare const defaultClient: AnalyticsClient;
17export default defaultClient;