/**
 * 状态管理 Store 导出
 */

export { useAuthStore, useCurrentUser, useIsAuthenticated, useAuthLoading } from './authStore';
export {
  useUserStore,
  usePosts,
  useNotifications,
  useNotificationBadge,
  useMessageUnreadCount,
  useSearchHistory
} from './userStore';

// MessageManager 新架构导出（已替换 conversationStore）
export { messageManager } from './messageManager';
export type {
  MessageEvent,
  MessageEventType,
  MessageSubscriber,
  MessageManagerConversationListDeps,
} from './messageManager';
export {
  CONVERSATION_LIST_PAGE_SIZE,
  type ConversationListPage,
  type IConversationListPagedSource,
  type RemoteConversationListSourceKind,
  NetworkRemoteConversationListPagedSource,
  SqliteConversationListPagedSource,
  createRemoteConversationListSource,
} from './conversationListSources';
export {
  GROUP_MEMBER_LIST_PAGE_SIZE,
  type GroupMemberListSourceKind,
  type IGroupMemberListPagedSource,
  NetworkCursorGroupMemberListPagedSource,
  NetworkOffsetGroupMemberListPagedSource,
  createRemoteGroupMemberListSource,
} from './groupMemberListSources';
export { enrichGroupMembersWithUserProfiles } from './groupMemberProfileResolver';
export { postManager } from './postManager';
export { groupManager } from './groupManager';
export { userManager } from './userManager';
export {
  useHomeTabBarVisibilityStore,
} from './homeTabBarVisibilityStore';
export {
  useHomeTabPressStore,
} from './homeTabPressStore';
export {
  useAppColors,
  useThemePreference,
  useResolvedColorScheme,
  useSetThemePreference,
  usePaperThemeFromStore,
  ThemeBootstrap,
  useThemeStore,
  type ThemePreference,
  type ResolvedScheme,
} from './themeStore';
export {
  useConversations as useMessageManagerConversations,
  useMessages,
  useSendMessage,
  useMarkAsRead,
  useUnreadCount,
  useTotalUnreadCount,
  useConversation as useMessageManagerConversation,
  useMessageManager,
  useChat,
  useMessageList,
  useMessageListRefresh,
  useCreateConversation,
  useUpdateConversation,
  useSystemUnreadCount as useMessageManagerSystemUnreadCount,
  useGroupTyping,
  useGroupMuted,
} from './messageManagerHooks';
