type UserPreferences = { language: string; newRoomNotification: string; newMessageNotification: string; clockMode: number; useEmojis: boolean; convertAsciiEmoji: boolean; saveMobileBandwidth: boolean; collapseMediaByDefault: boolean; autoImageLoad: boolean; emailNotificationMode: string; unreadAlert: boolean; notificationsSoundVolume: number; desktopNotifications: string; mobileNotifications: string; enableAutoAway: boolean; highlights: string[]; messageViewMode: number; hideUsernames: boolean; hideRoles: boolean; displayAvatars: boolean; hideFlexTab: boolean; sendOnEnter: string; idleTimeLimit: number; sidebarShowFavorites: boolean; sidebarShowUnread: boolean; sidebarSortby: string; sidebarViewMode: string; sidebarDisplayAvatar: boolean; sidebarGroupByType: boolean; muteFocusedConversations: boolean; dontAskAgainList: { action: string; label: string }[]; }; export type SaveUserPreferencesMethod = (preferences: Partial) => boolean;