import { ChatMessage } from "../../../interfaces/models/ChatMessage"; export interface UseLiveChatMessagesProps { conversationId: string; parentId?: string | null; limit?: number; includeFiles?: boolean; } export interface UseLiveChatMessagesValues { messages: ChatMessage[]; loading: boolean; hasMore: boolean; loadOlder: () => Promise; } /** * Live, store-backed view of a conversation's messages. Reads from the shared * Redux bucket that `ChatProvider` keeps in sync via socket events, so new * messages, edits, reactions and reply-count changes appear in real time, and * state is shared with `useSendMessage` (optimistic inserts), unread tracking * and reconnect catch-up. * * This is the canonical conversation surface. For a read-only / filtered query * that should NOT be polluted by live traffic, use * `useFetchManyChatMessagesWrapper` instead. */ declare function useLiveChatMessages({ conversationId, parentId, limit, includeFiles, }: UseLiveChatMessagesProps): UseLiveChatMessagesValues; export default useLiveChatMessages;