/** * Tree Shaker * * Starting from a set of root canonical URLs (the profiles the user * actually references), walk the transitive closure of all outgoing * canonical references. Any pinned canonical NOT in the closure is * dropped. * * This dramatically reduces the working set — e.g. hl7.terminology.r4 * goes from 4158 canonicals to ~7 when only US Core is installed. */ import type { PinnedCanonical } from './types'; export interface CanonicalGraph { outgoingRefs: Map>; } export declare function treeShake(pinned: Map, roots: string[], graph: CanonicalGraph): Map; /** * Extract outgoing canonical references from a FHIR resource JSON. * Checks fields that contain canonical references per the FHIR spec: * - StructureDefinition: baseDefinition, type, targetProfile, profile * - ValueSet: compose.include[].system, compose.include[].valueSet * - CodeSystem: valueSet * - SearchParameter: base, expression */ export declare function extractOutgoingRefs(resource: Record): string[]; //# sourceMappingURL=tree-shaker.d.ts.map