import type { ObjectId } from 'mongodb'; /** A document in `activefires` (see docs/legacy-matching.md ยง1). */ export interface FireDoc { _id: ObjectId; ourid?: { type: 'Point'; coordinates: [number, number] }; // [lon, lat] lat: number; lon: number; when: Date; type: 'modis' | 'viirs' | 'vecinal' | string; createdAt?: Date; updatedAt?: Date; fireUnion?: ObjectId; [k: string]: unknown; // other NASA fields (acq_date, frp, confidence, ...) } /** A document in `subscriptions`. */ export interface SubscriptionDoc { _id: ObjectId; location: { lat: number; lon: number }; geo: { type: 'Point'; coordinates: [number, number] }; // [lon, lat] distance: number; // radius in km owner: string; // userId type: 'web' | 'mobile' | 'telegram' | string; chatId?: number; telegramBot?: string; }