export interface CaptureEvent { event: string distinctId: string properties?: Record } export interface IdentifyParams { distinctId: string properties?: Record } export interface AnalyticsPort { readonly name: string capture(event: CaptureEvent): void identify(params: IdentifyParams): void flush(): Promise shutdown(): Promise }