import type { PreferencesType, PreferenceType } from '@mattermost/types/preferences'; import type { GlobalState } from '@mattermost/types/store'; export declare function getMyPreferences(state: GlobalState): { [x: string]: PreferenceType; }; export declare function getUserPreferences(state: GlobalState, userID: string): PreferencesType; export declare function get(state: GlobalState, category: string, name: string, defaultValue?: string, preferences?: PreferencesType): string; export declare function getFromPreferences(preferences: PreferencesType, category: string, name: string, defaultValue?: any): any; export declare function getBool(state: GlobalState, category: string, name: string, defaultValue?: boolean, userPreferences?: PreferencesType): boolean; export declare function getInt(state: GlobalState, category: string, name: string, defaultValue?: number, userPreferences?: PreferencesType): number; export declare function makeGetCategory(selectorName: string, category: string): (state: GlobalState) => PreferenceType[]; export declare function makeGetUserCategory(selectorName: string, category: string): (state: GlobalState, userID: string) => PreferenceType[]; export declare const getDirectShowPreferences: (state: GlobalState) => PreferenceType[]; export declare const getGroupShowPreferences: (state: GlobalState) => PreferenceType[]; export declare const getTeammateNameDisplaySetting: (state: GlobalState) => string; export declare const getThemePreferences: (state: GlobalState) => PreferenceType[]; export type ThemeKey = 'denim' | 'sapphire' | 'quartz' | 'indigo' | 'onyx'; export type LegacyThemeType = 'Mattermost' | 'Organization' | 'Mattermost Dark' | 'Windows Dark'; export type ThemeType = 'Denim' | 'Sapphire' | 'Quartz' | 'Indigo' | 'Onyx'; export type Theme = { [key: string]: string | undefined; type?: ThemeType | 'custom'; sidebarBg: string; sidebarText: string; sidebarUnreadText: string; sidebarTextHoverBg: string; sidebarTextActiveBorder: string; sidebarTextActiveColor: string; sidebarHeaderBg: string; sidebarTeamBarBg: string; sidebarHeaderTextColor: string; onlineIndicator: string; awayIndicator: string; dndIndicator: string; mentionBg: string; mentionBj: string; mentionColor: string; centerChannelBg: string; centerChannelColor: string; newMessageSeparator: string; linkColor: string; buttonBg: string; buttonColor: string; errorTextColor: string; mentionHighlightBg: string; mentionHighlightLink: string; codeTheme: string; }; export declare const getTheme: (state: GlobalState) => Theme; export declare function makeGetStyleFromTheme