import type { TFunction } from 'i18next'; import type { AnswerOrigin, IntakeAnswer, IntakeFieldDef } from './anamnesis-types'; /** Is this field's free-text "Dettagli" box on screen right now? Mirrors what * the case blocks below actually render — a frequency detail is up from the * start, a choice detail waits for a selection, a yes/no detail for a "yes" — * so the intake can hand the whole row to any field showing one. */ export declare function isDetailVisible(def: IntakeFieldDef, answer?: IntakeAnswer): boolean; export interface AnamnesisFieldProps { def: IntakeFieldDef; answer?: IntakeAnswer; onChange: (answer: IntakeAnswer) => void; /** Show the "from patient" marker when the value still carries patient origin * (compile mode). Intake mode leaves this off — the patient owns the form. */ showOrigin?: boolean; origin?: AnswerOrigin; /** Render the answer without letting it be changed — the state a compiled * questionnaire arrives in, until the reader asks to edit it. Every control * is disabled rather than swapped for text, so nothing shifts under the * reader when editing is unlocked. */ readOnly?: boolean; /** Grid placement handed down by the section that lays the field out — the * whole row for a question that needs the width. */ className?: string; t: TFunction; } export declare function AnamnesisField({ def, answer, onChange, showOrigin, origin, readOnly, className, t, }: AnamnesisFieldProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=anamnesis-field.d.ts.map