/** * Profile-load pipeline for StructureDefinitionLoader. * * The full loadProfile() flow — pinned-canonical resolution, negative caches, * in-memory + DB cache checks, and the known-source fallback (local package * filesystem then auto-download). Extracted from structure-definition-loader.ts; * the loader passes its mutable caches/maps by reference so updates propagate * back, plus a resolvePinnedCanonical callback for its private pin map. */ import type { PackageDownloader } from '../package/package-downloader.js'; import type { PackageRegistryClient } from '../package/package-registry-client.js'; import type { StructureDefinition } from './structure-definition-types'; import type { ProfileSourcesConfig, ValidationSettings } from '../types'; import { type ProfileSourceContext } from '../persistence'; export interface LoadProfileContext { availableProfiles: Set; packageSources: string[]; cache: Map; profileNotFound: Set; dbCacheNotFound: Set; profileLoadPromises: Map>; autoDownload: boolean; registryClient: PackageRegistryClient; packageDownloader: PackageDownloader; allowedPackages: string[]; packageVersionPins: Record; profileSourcesConfig: ProfileSourcesConfig; profileSourceContext?: ProfileSourceContext; profileResolutionSettings?: ValidationSettings; resolvePinnedCanonical(url: string): string; } /** * Load a StructureDefinition by URL. */ export declare function loadProfile(ctx: LoadProfileContext, url: string, fhirVersion?: 'R4' | 'R5' | 'R6'): Promise; //# sourceMappingURL=sd-loader-load.d.ts.map