/** * Reference Graph Builder * * Builds the reference graph consumed by the circular reference detector: * extracts reference strings from resources/Bundles and resolves reference * strings to graph node IDs. */ export interface ReferenceNode { /** Unique identifier for this node (fullUrl, ResourceType/id, or #id) */ id: string; /** Resource type if known */ resourceType?: string; /** References from this node to other nodes */ references: string[]; /** Depth in the reference chain */ depth: number; /** Parent node ID */ parent?: string; } export interface ReferenceGraph { /** All nodes in the graph */ nodes: Map; /** Adjacency list for quick lookups */ adjacencyList: Map>; /** Root nodes (nodes with no incoming references) */ rootNodes: Set; } /** * Build a reference graph from a resource */ export declare function buildReferenceGraph(resource: any, visitedObjects: WeakSet): ReferenceGraph; /** * Find node by reference string */ export declare function findNodeByReference(reference: string, nodes: Map): string | null; //# sourceMappingURL=reference-graph-builder.d.ts.map