import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
import { type VariantProps } from 'class-variance-authority';
declare const rootVariants: (props?: ({
surface?: "elevated" | "flat" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
export interface AnamnesisCardAnswer {
/** The questionnaire question text. Rendered as the `
` term. */
question: string;
/** The patient's recorded answer. Rendered as the `` detail. */
answer: ReactNode;
/**
* Marks this row as a clinical red-flag answer. Highlighted rows render
* a `bordered` divider + an inline-end warning chip so they stand out
* within the interview body — with the warning glyph carrying the cue,
* not colour alone.
*/
highlight?: boolean;
}
export interface AnamnesisCardStatus {
/** The questionnaire is past its validity window — surfaces a warning chip. */
expired?: boolean;
/** The submission is corrupted / incomplete — surfaces an error chip. */
corrupted?: boolean;
}
export interface AnamnesisCardProps extends Omit, 'aria-label' | 'children' | 'title'> {
/**
* The questionnaire's compiled / reference date as an ISO-8601 string.
* Rendered as an absolute `` in the header.
*/
dateIso: string;
/**
* Optional submission / creation timestamp as an ISO-8601 string.
* Rendered as a relative `` caption beneath the heading.
*/
createdAtIso?: string;
/**
* Form / template name (e.g. "Anamnesi generale"). When omitted, a
* localised generic heading is used.
*/
formName?: string;
/**
* Count of answers flagged as clinical red-flags. When `> 0`, renders
* the prominent `error` Badge with a warning glyph + colour-blind dot.
* Omit / `0` hides the chip.
*/
highlightedAnswerCount?: number;
/** Lifecycle / integrity status — drives the warning / error chips. */
status?: AnamnesisCardStatus;
/**
* The question/answer pairs. Rendered inside the collapsible interview
* as a `` (dt = question, dd = answer). When empty or
* omitted, the interview shows a localised "no answers" line.
*/
answers?: AnamnesisCardAnswer[];
/**
* `'elevated'` (default) wraps in ``. `'flat'`
* drops the Card — use inside another card / sheet.
*/
surface?: 'flat' | 'elevated';
/** Override the default region aria-label. */
'aria-label'?: string;
/** Agent-readiness consumer id, surfaced as `data-component-id`. */
id?: string;
}
export declare const AnamnesisCard: import("react").ForwardRefExoticComponent>;
export type AnamnesisCardSurface = NonNullable['surface']>;
export {};
//# sourceMappingURL=anamnesis-card.d.ts.map