import { type FeatureCategory, type FeatureKind } from './data/feature-vocabulary.js'; import { TILE_CONTENT } from './data/tile-content.js'; import type { TileGeometry } from './data/tile-geometry.js'; import type { Point, TileContent, TileSpace } from './tile-content-types.js'; export { TILE_CONTENT }; export declare function featureCategory(kind: FeatureKind): FeatureCategory; /** true when the tile has had its spaces and objects annotated */ export declare function isAnnotated(content: TileContent | undefined): content is TileContent; /** Ray casting; points on the edge count as inside only by chance, so allow for that in callers */ export declare function pointInPolygon([x, y]: Point, outline: Point[]): boolean; /** Distance from a point to the nearest edge of a polygon */ export declare function distanceToOutline([x, y]: Point, outline: Point[]): number; export declare function polygonArea(outline: Point[]): number; /** * The space containing a local point, or the nearest one within `tolerance`. * A space can sit inside another as an island (a pit in a grove), so the smallest match wins. */ export declare function spaceAt(content: TileContent, p: Point, tolerance?: number): TileSpace | undefined; export interface ContentCheck { /** The annotation is wrong and must be fixed */ errors: string[]; /** Probably wrong; worth a look */ warnings: string[]; } /** Check one tile's annotation against its geometry */ export declare function checkTileContent(id: string, content: TileContent, geo: TileGeometry): ContentCheck; //# sourceMappingURL=tile-content.d.ts.map