import L from 'leaflet'; import type { Map } from 'leaflet'; interface GridPoint { lat: number; lng: number; } export declare class GridSystem { private map; private gridWidth; private gridHeight; constructor(map: Map, gridWidth?: number, gridHeight?: number); private handleZoomChange; private calculateGridWidthBasedOnZoom; private calculateGridHeightBasedOnZoom; /** * 计算给定点所属网格的索引。 * @param point - 坐标点 */ getGridIndex(point: L.LatLng): { gridLngIndex: number; gridLatIndex: number; }; /** * 构建网格存储结构 * @param bounds - 数据分布的地理边界 */ initializeGrid(): GridPoint[][]; /** * 将坐标点集合进行网格化筛选,存储至指定网格 * @param points - 原始坐标点集合 */ filterAndStorePoints(points: L.LatLng[]): L.LatLng[]; getFilteredPoints(grid: GridPoint[][]): L.LatLng[]; } export {};