UNPKG

mattermost-redux

Version:

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

14 lines (13 loc) 1.18 kB
import { GlobalState } from "../../types/store"; import { Team } from "../../types/teams"; import { UserThread, ThreadsState } from "../../types/threads"; import { $ID, RelationOneToMany } from "../../types/utilities"; export declare function getThreadsInTeam(state: GlobalState): RelationOneToMany<Team, UserThread>; export declare const getThreadsInCurrentTeam: (state: GlobalState) => Array<$ID<UserThread>>; export declare function getThreadCounts(state: GlobalState): ThreadsState['counts']; export declare function getTeamThreadCounts(state: GlobalState, teamId: $ID<Team>): ThreadsState['counts'][$ID<Team>]; export declare const getThreadCountsInCurrentTeam: (state: GlobalState) => ThreadsState['counts'][$ID<Team>]; export declare function getThreads(state: GlobalState): import("../../types/utilities").RelationOneToOne<UserThread, UserThread>; export declare function getThread(state: GlobalState, threadId: $ID<UserThread> | undefined): UserThread | null; export declare const getThreadOrderInCurrentTeam: (state: GlobalState) => Array<$ID<UserThread>>; export declare const getUnreadThreadOrderInCurrentTeam: (state: GlobalState) => Array<$ID<UserThread>>;