import React from 'react'; import type { ThreadContext, ThreadSubject } from '../types.js'; export interface CommentTriggerProps extends ThreadContext { /** What to call the thing being discussed, for the thread's header. */ subject?: ThreadSubject; /** * Called instead of opening the built-in thread view, for a host that renders the * thread somewhere of its own — a side panel rather than beside the content. */ onOpen?: (context: ThreadContext) => void; /** * Called when the built-in thread view opens and again when it closes, for a host * that has to keep the trigger on screen for as long as the thread is up. Closing * includes another thread being opened in its place. */ onOpenChange?: (open: boolean) => void; } /** * The entry point to a thread about one piece of content. * * Neutral until something has been said, then filled blue with the comment count badged * on its corner, so a reader can tell which blocks are already being discussed without * opening anything. * * Only one thread is open at a time: opening this one closes whichever was open. */ export declare function CommentTrigger({ contextType, contextId, threadId, commentCount, resolved, subject, onOpen, onOpenChange, }: CommentTriggerProps): React.ReactElement;