import { IBase } from '../base-models/library-interfaces'; /** * Determine if all the provided elements are empty * * @privateRemarks * Loosely based on HAPI FHIR ca.uhn.fhir-core.util.ElementUtil * * @param elements - FHIR instance's data elements * @returns `true` if all provided elements are empty; `false` if at least one element is not empty * * @category Utilities */ export declare function isElementEmpty(...elements: (IBase | IBase[] | undefined | null)[]): boolean; /** * Determine if any of the provided required elements (min cardinality > 0) are empty * * @param elements - FHIR instance's required data elements * @returns `true` if any of the provided required elements are empty; `false` if all required elements are not empty * * @category Utilities */ export declare function isRequiredElementEmpty(...elements: (IBase | IBase[] | undefined | null)[]): boolean; /** * Validate the provided url. The url must be a non-blank valid fhirUri. * * @param url - url to test * @throws [AssertionError](https://nodejs.org/docs/latest-v22.x/api/assert.html#class-assertassertionerror) for invalid url * * @category Utilities */ export declare function validateUrl(url: string): void; /** * Extract the field name from sourceField * * @param sourceField - fully specified source field name (e.g., 'Group.member.entity') * @returns the field name (e.g., 'entity') * * @category Utilities */ export declare function extractFieldName(sourceField: string): string; /** * Return a deep copy of the source contents. Returns an empty array if source is undefined or null. * The calling code can decide on how to interpret the empty array (e.g., undefined for an optional * property or null for an uninitialized required property). * * @param source - source array to copy * @returns copy of the source array or an empty array if source is undefined/null * * @category Utilities */ export declare function copyListValues(source: T[] | undefined | null): T[]; //# sourceMappingURL=fhir-util.d.ts.map