import { ReactNode } from 'react'; import type { WellhubContext } from '../WellhubFilePicker'; import { UploadedAttachment } from './useAttachmentUpload'; import { CommentMetaRow } from './CommentMetaLine'; import { ShareToChatRowProps } from './ShareToChatRow'; export type CommentComposerUser = { id?: number; company_id?: number; first_name?: string; last_name?: string; profile_photo?: string; [key: string]: unknown; }; export type CommentComposerTrailingState = { canSend: boolean; submit: () => void; }; export type CommentComposerProps = { body: string; onBodyChange: (value: string) => void; onSubmit: () => void; canSubmit: boolean; currentUser: CommentComposerUser; attachments?: UploadedAttachment[]; onAttachmentsChange?: (attachments: UploadedAttachment[]) => void; maxAttachments?: number; /** @deprecated Use `attachments` — kept so single-attachment callers keep working. */ attachment?: UploadedAttachment | null; /** @deprecated Use `onAttachmentsChange`. */ onAttachmentChange?: (attachment: UploadedAttachment | null) => void; attachmentError?: string | null; onAttachmentError?: (message: string | null) => void; maxAttachmentSizeBytes?: number; wellhubContext?: WellhubContext; disabled?: boolean; autoFocus?: boolean; placeholder?: string; metaRows?: CommentMetaRow[]; isMetaSingleLine?: boolean; shareToChat?: Omit; /** Replaces the default send button, e.g. the edit form's Cancel/Save. */ trailing?: ReactNode; /** Like `trailing`, but receives the upload-aware send state for a custom Save. */ renderTrailing?: (state: CommentComposerTrailingState) => ReactNode; /** Render flush inside a host card instead of as its own surface. */ embedded?: boolean; className?: string; testId?: string; }; export declare const CommentComposer: ({ body, onBodyChange, onSubmit, canSubmit, currentUser, attachments, onAttachmentsChange, maxAttachments, attachment, onAttachmentChange, attachmentError, onAttachmentError, maxAttachmentSizeBytes, wellhubContext, disabled, autoFocus, placeholder, metaRows, isMetaSingleLine, shareToChat, trailing, renderTrailing, embedded, className, testId, }: CommentComposerProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=CommentComposer.d.ts.map