import { BufferAnalytics } from "@/models/Analytics.js"; export interface QueryOptions { range?: number; rangeUnit?: string; interval?: number; intervalUnit?: string; limit?: number; } export interface IAnalyticsRepository { insertBatch(data: BufferAnalytics[]): Promise; insertSingle(data: BufferAnalytics): Promise; clearProjectAnalytics(projectId: string): Promise; getBandwidth(projectId: string, queryOptions: QueryOptions): Promise; getOverview(projectId: string, queryOptions: QueryOptions): Promise; getRealtime(projectId: string, queryOptions: QueryOptions): Promise; getTopPages(projectId: string, queryOptions: QueryOptions): Promise; getOsStats(projectId: string, queryOptions: QueryOptions): Promise; getBrowserStats(projectId: string, queryOptions: QueryOptions): Promise; }