import { ConversationPreview } from "../../../interfaces/models/Conversation"; export interface FetchConversationPreviewProps { conversationId: string; } /** * Fetch a single ConversationPreview (unreadCount, otherMembers, truncated * lastMessage) for one conversation — the same shape as a `listConversations` * item, not the plain `Conversation` shape `useFetchConversation` returns. * * Used by ChatProvider's live wiring to fetch-and-insert a conversation that * isn't in the loaded inbox list (a brand-new conversation, or one paginated * out that just received a message). */ declare function useFetchConversationPreview(): (props: FetchConversationPreviewProps) => Promise; export default useFetchConversationPreview;