import type { TileContent, TileFeature, TileSpace } from '../catalogs/tile-content-types.js'; import type { ScenarioModel } from '../model/scenario-model.js'; import { type PlacedTile } from './layout.js'; export declare function tileContent(tile: PlacedTile): TileContent | undefined; export interface TileLocation { tile: PlacedTile; space?: TileSpace; /** Distance to the edge of that space: small values mean the token straddles a space line */ edgeDistance?: number; nearest?: { feature: TileFeature; distance: number; }; } /** What is at a world position: the tile, the space and the closest object */ export declare function locate(tiles: PlacedTile[], x: number, y: number): TileLocation | undefined; export declare const featureText: (f: TileFeature) => string; export interface ResolvedSpot { x: number; y: number; /** Human-readable account of where the spot is */ description: string; warning?: string; } /** * Resolve a placement shorthand to world coordinates: * "TileName" a free spot in the tile's largest space * "TileName:s2" a free spot in space s2 * "TileName:f3" on object f3 * "TileName:bookcase" on the first object of that kind (synonyms and label words work too) * `self` is the component being placed, so its own current position doesn't count as taken. */ export declare function resolveSpot(model: ScenarioModel, at: string, self?: string): ResolvedSpot; //# sourceMappingURL=tile-spots.d.ts.map