/** * Slice Discriminator Matcher * * Extracted from SlicingValidator. Handles the 5 discriminator types * (value, pattern, type, profile, exists) plus resolve() path support. */ import type { SlicingDiscriminator } from '../core/structure-definition-types'; import type { SliceDefinition } from './slice-types'; import { type ReferenceResolverFn } from './slice-profile-discriminator-matcher'; export type { ReferenceResolverFn } from './slice-profile-discriminator-matcher'; /** * Whether a slice carries enough resolved metadata to evaluate a * discriminator. Differential-only snapshots can retain the slicing header * while losing the inherited fixed/pattern/type constraints from their base * profile. Treating such a slice as a match (or a mismatch) creates resource * errors from a profile-resolution gap. */ export declare function sliceHasDiscriminatorEvidence(slice: SliceDefinition, discriminator: SlicingDiscriminator): boolean; export declare function matchDiscriminator(element: any, slice: SliceDefinition, discriminator: SlicingDiscriminator, referenceResolver: ReferenceResolverFn, matchesPatternFn: (value: any, pattern: any) => boolean, codingMatchesBindingCodesFn: (value: any, codes: Set) => boolean, allSlices?: SliceDefinition[]): boolean; //# sourceMappingURL=slice-discriminator-matcher.d.ts.map