import { type SignatureParty, type SignatureSignerNames } from '../../components/signature-status-chip'; import { type SignatureChannel } from './channel-meta'; /** Legal weight of a signature. Advanced needs an OTP-verified signer. */ export type SignatureLegalLevel = 'simple' | 'advanced'; /** Which file a download asks for. */ export type SignatureDownloadVersion = 'full' | 'anonymised'; /** How a signed document is shared. */ export type SignatureShareTarget = 'link' | 'email' | 'whatsapp'; /** One past signature request on the document. */ export interface SignatureRecord { /** Host id, handed back to every row callback. */ id: string; /** * When the request was made: a `Date` or an ISO 8601 string, shown as * weekday, date and time in the active locale and the browser's time zone * (Italian: "Mar. il 25/08/2026 ore 12:45"). An unparseable string is * shown as it is. */ createdAt: Date | string; /** How the request reached the signer. */ channel: SignatureChannel; /** Omit to show no legal level on this row. */ legalLevel?: SignatureLegalLevel; /** The operator's standing, as on SignatureStatusChip. */ operator: SignatureParty; /** The patient's standing, as on SignatureStatusChip. */ patient: SignatureParty; /** The second signee's standing. Defaults to `notRequired`. */ secondary?: SignatureParty; /** * Signer names for the chip's tooltip, including who signed on a * party's behalf (a parent for a minor). Same shape as the chip's `names`. */ names?: SignatureSignerNames; /** Offer the anonymised file beside the full one on download. */ hasAnonymisedVersion?: boolean; /** * Where this document can be shared, e.g. no `'whatsapp'` for a patient * with no mobile number. Wins over the list's `shareTargets`. The menu * keeps its own order (link, e-mail, WhatsApp); an empty list hides Share * on this row. */ shareTargets?: readonly SignatureShareTarget[]; } export interface SignatureHistoryProps { signatures?: readonly SignatureRecord[]; loading?: boolean; showLegalLevel?: boolean; onView?: (id: string) => void; onDownload?: (id: string, version: SignatureDownloadVersion) => void; onShare?: (id: string, via: SignatureShareTarget) => void; /** Share targets for rows without their own. Default: all three. */ shareTargets?: readonly SignatureShareTarget[]; onDelete?: (id: string) => void; } export declare function SignatureHistory({ signatures, loading, showLegalLevel, onView, onDownload, onShare, shareTargets, onDelete, }: SignatureHistoryProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=signature-history.d.ts.map