/**
* Narrative Validator
*
* Validates FHIR Narrative (text.div) XHTML content according to FHIR specification.
*
* FHIR Narrative Rules:
* 1. Must be valid XHTML (well-formed XML)
* 2. Root element must be
* 3. Only allowed XHTML elements and attributes
* 4. No scripts, no forms, no external references
* 5. No or declarations (XXE attack protection)
*/
import type { ValidationIssue } from '../types';
export declare class NarrativeValidator {
/**
* Validate narrative content of a resource
*/
validateNarrative(resource: any, resourceType: string): ValidationIssue[];
/**
* Recursively validate Composition.section[].text narratives. Each
* section may carry its own `text` Narrative, and may contain nested
* `section` BackboneElements.
*/
private validateCompositionSectionNarratives;
/**
* Validate `Narrative.extension` entries with the HL7-defined
* `textLink` URL. Each instance must carry sub-extensions `htmlid`
* (string) and `data` (uri); the htmlid value should appear as an
* `id="…"` attribute in the rendered xhtml, and the data uri (when it
* starts with `#`) should resolve to a contained resource id.
*/
private validateTextLinkExtensions;
}
export declare const narrativeValidator: NarrativeValidator;
//# sourceMappingURL=narrative-validator.d.ts.map