import { type AxialCoord, type HexCell } from "./hex.ts"; import { type TopologyBoundary, type TopologyBoundaryDefinition } from "./topologyBoundary.ts"; import type { TopologyNodeOperationalState } from "./nodeStatus.ts"; export interface WorldEntity extends AxialCoord { id: string; label: string; subtitle?: string; type?: "anchor" | "section" | "entity" | "data"; status?: TopologyNodeOperationalState | string; } export interface WorldRelationship { from: string; to: string; kind?: string; active?: boolean; muted?: boolean; } export interface WorldCameraState { center: AxialCoord; zoom: number; viewportWidth: number; viewportHeight: number; } export interface WorldModelOptions { radius: number; cells: HexCell[]; entities?: WorldEntity[]; relationships?: WorldRelationship[]; boundary?: TopologyBoundaryDefinition | null; camera?: Partial; } export declare class WorldModel { readonly radius: number; readonly cells: HexCell[]; readonly entities: WorldEntity[]; readonly relationships: WorldRelationship[]; readonly boundary: TopologyBoundaryDefinition | null; readonly camera: WorldCameraState; constructor(options: WorldModelOptions); getEntity(id: string): WorldEntity | null; getEntitiesAt(coord: AxialCoord): WorldEntity[]; getNeighbors(id: string): WorldEntity[]; getRelationshipsForEntity(id: string): WorldRelationship[]; getBoundary(entityId: string): TopologyBoundary | null; sameBoundary(sourceId: string, targetId: string): boolean; getVisibleCells(camera: WorldCameraState, padding?: number): { id: string; center: { x: number; y: number; }; }[]; fitCamera(viewportWidth: number, viewportHeight: number, padding?: number): WorldCameraState; focusEntity(entityId: string, viewportWidth: number, viewportHeight: number, padding?: number): WorldCameraState; setCamera(nextCamera: Partial): WorldModel; } export declare function createWorldCameraState(options?: Partial): WorldCameraState; export declare function fitWorldCameraToEntities(params: { entities: Array>; viewportWidth: number; viewportHeight: number; radius: number; padding?: number; }): WorldCameraState; //# sourceMappingURL=worldModel.d.ts.map