import type { QuestionnaireItem } from 'fhir/r4'; export type FeedbackSeverity = 'error' | 'warning'; export interface ValidationFeedbackWithSeverity { feedback: string; feedbackSeverity: FeedbackSeverity; } /** * Returns both the human-readable validation feedback message and its severity * (`'error'` or `'warning'`), allowing field components to style advisory warnings * differently from blocking errors. * * Use this hook in place of the deprecated {@link useValidationFeedback}. */ declare function useValidationFeedbackSeverity(qItem: QuestionnaireItem, feedbackFromParent: string | undefined): ValidationFeedbackWithSeverity; export default useValidationFeedbackSeverity;