import type { Tile } from './hexasphere.types'; /** * Pre-computes a neighbour map for all tiles on a hexasphere. * * Two tiles are neighbours if they share an edge, i.e. at least 2 boundary * points with identical coordinates (within 1e-6 precision). This works * natively with pentagon tiles (5 edges) and avoids any icosahedron-face * bookkeeping. * * Call once per planet load — O(n * avg_boundary) where n = tile count. * * @param tiles - All tiles from HexasphereData. * @returns Map from tileId to the array of neighbour tileIds. */ export declare function buildNeighborMap(tiles: readonly Tile[]): Map; /** * Returns the direct neighbour tile ids for a given tile. * * @param tileId - Source tile id. * @param neighborMap - Pre-computed map from buildNeighborMap(). * @returns Array of neighbour tile ids (5 for pentagons, 6 for hexagons). */ export declare function getNeighbors(tileId: number, neighborMap: Map): number[]; //# sourceMappingURL=hexNeighbors.d.ts.map