import type { QuestionnaireItem } from 'fhir/r4'; import type { CalculatedExpression } from '../interfaces'; /** * Returns the value of a cqf-expression, calculatedExpression or ItemTextAriaLabelExpression. * * - If no expression is found → returns null. * - If the value is null → returns an empty string. * - If the value is a string or number → returns it as a string. * * @param {QuestionnaireItem} qItem - The questionnaire item. * @param {CalculatedExpression['from']} from - The expression source (e.g. 'item._text', 'item._text.aria-label', 'item._prefix') * @returns {string | null} The display value as a string, empty string, or null. */ declare function useDisplayCqfAndCalculatedExpression(qItem: QuestionnaireItem, from: CalculatedExpression['from']): string | null; export default useDisplayCqfAndCalculatedExpression;