/** * For-Publication Severity Escalation (gap C-C4) * * FHIR's IG Publisher validates in a stricter "for-publication" mode: a * published Implementation Guide should not ship with outstanding warnings, and * best-practice hints should be surfaced rather than buried at info level. * * This is a monotonic severity-ESCALATION layer — the inverse of the strictness * downgrade. It runs LAST, after `applyStrictnessSeverity` + `applyAdvisorRules`, * so explicit user decisions (advisor suppressions/overrides) still win: * escalation only raises whatever survives, and never downgrades, so it composes * cleanly with the layers before it. * * Default policy (forPublication = true): * - warning → error (a published IG must be warning-free) * - best-practice info → warning (surface hints without erroring on every info) * - error / fatal / other info: unchanged */ import type { ValidationIssue } from '@records-fhir/validation-types'; /** * Read the opt-in `forPublication` flag off a settings object. Accepts any * shape carrying the flag (full `ValidationSettings` or a snapshot subset). */ export declare function isForPublication(settings: unknown): boolean; /** * Escalate issue severities for publication. No-op unless `forPublication` is * true. Preserves the earliest-known `originalSeverity` and marks escalated * issues with `details.publicationEscalated` for downstream/UI attribution. */ export declare function applyPublicationEscalation(issues: ValidationIssue[], forPublication: boolean): ValidationIssue[]; //# sourceMappingURL=publication-escalation.d.ts.map