import type { ReactNode } from 'react'; /** * What a note is attached to. * * - `patient` — the patient record itself. * - `carePlan` — a numbered care plan. * - `carePlanEntry`— one treatment in a plan, optionally with tooth elements. * - `phase` — a scheduled phase. * - `xray` — an x-ray / radiograph, optionally labelled. * * Every non-patient kind takes an optional `url`: a safe one turns the chip * into a link, an unsafe one keeps the chip. */ export type NoteAttachment = { kind: 'patient'; } | { kind: 'carePlan'; number: string; url?: string; } | { kind: 'carePlanEntry'; careName: string; elements?: string[]; url?: string; } | { kind: 'phase'; label: string; url?: string; } | { kind: 'xray'; label?: string; url?: string; }; /** * Renders the attachment as a chip, or a link when `url` is safe. Returns * `null` for an unattached note, so a caller can render it unconditionally. */ export declare function NoteAttachmentChip({ attachedTo, }: { attachedTo?: NoteAttachment; }): ReactNode; //# sourceMappingURL=note-attachment.d.ts.map