UNPKG

mattermost-redux

Version:

Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client

16 lines (15 loc) 1.28 kB
import type { ChannelMembership, Channel } from '@mattermost/types/channels'; import type { GlobalState } from '@mattermost/types/store'; import type { TeamMembership } from '@mattermost/types/teams'; import type { UserProfile } from '@mattermost/types/users'; import type { RelationOneToOne, IDMappedObjects } from '@mattermost/types/utilities'; export declare function getCurrentChannelId(state: GlobalState): string; export declare function getMyChannelMemberships(state: GlobalState): RelationOneToOne<Channel, ChannelMembership>; export declare const getMyCurrentChannelMembership: (a: GlobalState) => ChannelMembership | undefined; export declare function getMembersInChannel(state: GlobalState, channelId: string): Record<string, ChannelMembership>; export declare function getMembersInTeam(state: GlobalState, teamId: string): RelationOneToOne<UserProfile, TeamMembership>; export declare function getCurrentUser(state: GlobalState): UserProfile; export declare function getCurrentUserEmail(state: GlobalState): UserProfile['email']; export declare function getCurrentUserId(state: GlobalState): string; export declare function getUsers(state: GlobalState): IDMappedObjects<UserProfile>; export declare const getIsUserStatusesConfigEnabled: (a: GlobalState) => boolean;