/** * A single comment in a {@link CommentThread}. The `id` keys the list; the * consumer owns id assignment (backend or fixture). */ export interface Comment { id: string; author: string; body: string; /** ISO string OR Unix **ms** (Timestamp contract) — NOT seconds. */ createdAt: string | number; avatarUrl?: string; } export interface CommentThreadProps { /** The rendered thread (controlled — the consumer brings/persists it). */ comments: Comment[]; /** Called with the trimmed draft when the composer submits a non-empty body. */ onSubmit: (body: string) => void; /** Name of the person composing — surfaced as the composer avatar/context. */ currentUser?: string; disabled?: boolean; className?: string; } declare const CommentThread: import("react").ForwardRefExoticComponent>; export { CommentThread };