/** * @author: JP Lew (jp@cto.ai) * @date: Sunday, 28th April 2019 1:16:46 am * @lastModifiedBy: JP Lew (jp@cto.ai) * @lastModifiedTime: Wednesday, 4th September 2019 3:08:35 pm * @copyright (c) 2019 CTO.ai */ import Analytics from 'analytics-node'; import { ApiService } from '../types'; interface AnalyticsTrack { userId?: string | number; teamId?: string | number; anonymousId?: string | number; event: string; properties?: any; timestamp?: Date; context?: any; integrations?: any; } export declare class AnalyticsService { segmentClient: Analytics; api: ApiService; constructor(writeKey?: string); track(payload: AnalyticsTrack, accessToken?: string): Analytics | null; } export {};