mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
11 lines (10 loc) • 1.05 kB
TypeScript
import type { PreferenceType } from '@mattermost/types/preferences';
import type { Theme } from 'mattermost-redux/selectors/entities/preferences';
import type { ActionFuncAsync, ThunkActionFunc } from 'mattermost-redux/types/actions';
export declare function deletePreferences(userId: string, preferences: PreferenceType[]): ActionFuncAsync;
export declare function getMyPreferences(): ActionFuncAsync<PreferenceType, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
export declare function getUserPreferences(userID: string): ActionFuncAsync<PreferenceType[], import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
export declare function setCustomStatusInitialisationState(initializationState: Record<string, boolean>): ThunkActionFunc<void>;
export declare function savePreferences(userId: string, preferences: PreferenceType[]): ActionFuncAsync;
export declare function saveTheme(teamId: string, theme: Theme): ActionFuncAsync;
export declare function deleteTeamSpecificThemes(): ActionFuncAsync;