import React from 'react'; import { type MentionCandidate } from '../mentions.js'; export interface CommentComposerProps { /** * Called with the trimmed draft when the reader posts it. Absent when nothing can be * posted. May resolve to `false` to say the body did not land, which keeps the * draft in place for another try. */ onPost?: (body: string) => void | Promise; /** A post is in flight. */ posting?: boolean; /** The last post did not land. */ postFailed?: boolean; /** Who can be mentioned with `@`, agents first. Nobody, when absent. */ mentionCandidates?: readonly MentionCandidate[]; } /** * Where a new comment is written: a draft, the `@` mention picker over it, and the * Post button. Enter sends; Shift+Enter breaks the line. */ export declare function CommentComposer({ onPost, posting, postFailed, mentionCandidates, }: CommentComposerProps): React.ReactElement;