import type { Structure } from './types'; const STRUCTURE_REGISTRY = new Map(); export function registerStructure(type: string, structure: Structure) { STRUCTURE_REGISTRY.set(type, structure); } export function getStructure(type: string): Structure | undefined { return STRUCTURE_REGISTRY.get(type); } export function getStructures(): string[] { return Array.from(STRUCTURE_REGISTRY.keys()); }