import { ConversationInterface, MessageInterface, UserContextInterface } from "@churchapps/helpers"; export interface UseConversationOptions { /** content-keyed lookup (e.g. group, person, sermon, contentBlock). If contentId is empty, the hook is idle. */ contentType?: string; contentId?: string; /** direct conversation id lookup (used by private messages where the conversation already exists). */ conversationId?: string; /** required for join/leave room calls. */ context?: UserContextInterface; /** if no conversation exists for this content yet, create one with this groupId/visibility on first post. */ groupId?: string; visibility?: string; /** if true, the hook does not auto-join the realtime room. Used for transient previews. */ skipSubscribe?: boolean; } export interface UseConversationResult { conversation: ConversationInterface | null; messages: MessageInterface[]; isLoading: boolean; error: string | null; refresh: () => Promise; post: (content: string, messageType?: string) => Promise; edit: (messageId: string, content: string) => Promise; remove: (messageId: string) => Promise; } /** Subscribe to a conversation, get a live message list, and post/edit/delete. */ export declare function useConversation(opts: UseConversationOptions): UseConversationResult; //# sourceMappingURL=useConversation.d.ts.map