import { OnlineSnapshot } from '../entities/online-snapshot.entity';

export interface IOnlineSnapshotRepository {
  insert(snapshot: OnlineSnapshot): Promise<OnlineSnapshot>;
  findByTimeRange(startTime: Date, endTime: Date, interval?: string): Promise<OnlineSnapshot[]>;
  findLatest(): Promise<OnlineSnapshot | null>;
}

export const ONLINE_SNAPSHOT_REPOSITORY = 'ONLINE_SNAPSHOT_REPOSITORY';
