import L from 'leaflet'; import type { MyMap } from 'map-sdk-leaflet/es/sdk/ShipxyAPISDK'; interface Ship { shipid: string; mmsi: string; lat: number; lng: number; lastdyn: Date; lastdyn_active: boolean; country?: number; } declare class AreaShipsDataGridSymbol extends L.Class { options: { pk: string; latlngk: string; grid_size: number; }; _map: MyMap; _items: Record; _items_count: number; _index_grid: { [key: string]: { [key: string]: Ship; }; }; _index_mmsi: { [key: string]: string; }; private _indexGrid; private _gridShipsViewFilter; constructor(map: MyMap, defaultOptions?: Partial); _getItemsKey(data: Ship): string; _getMmsiKey(data: Ship): string; _getGridKey(data: Ship): string; _getGridByBounds05(bounds: L.LatLngBounds): string[]; _getGridByBounds(bounds: L.LatLngBounds): string[]; getItemByBounds(bound: L.LatLngBounds): Ship[]; getItemByBoundsForChouXi(bounds: L.LatLngBounds, zoom: number, limit: number): { lat: number; lng: number; }[] | null; /** * 计算中国偏移坐标的方法提取为 * @param areaBounds * @returns */ private adjustBoundsForChina; /** * 获取目标网格的方法提取为 * @param bounds * @param gridSize * @returns */ private getTargetGrids; updateDatas(data: Ship | Ship[], isRemove?: boolean): void; addIndex(data: Ship): void; removeIndex(data: Ship): void; hasItem(data: Ship): boolean; getItemByPK(shipid: number): Ship | null; getItemByObj(data: Ship): Ship | null; getItemCount(): number; getItemByMMSI(mmsi: string): Ship | null; deleteAll(): void; deleteByPK(data: any): void; } declare const _default: (map: MyMap, options: Partial) => AreaShipsDataGridSymbol; export default _default;