export type AnalyticsAttributeValue = string | number | boolean; export type AnalyticsUser = { id: string; }; export interface IAnalytics { track( event: string, attributes?: Record, ): void; identify( user: AnalyticsUser, attributes?: Record, ): void; pageView( path: string, attributes?: Record, ): void; flush(): Promise; }