mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
10 lines (9 loc) • 541 B
TypeScript
import type { GlobalState } from '@mattermost/types/store';
import type { UserMentionKey } from 'mattermost-redux/selectors/entities/users';
export declare const getCurrentSearchForCurrentTeam: (state: GlobalState) => string;
export declare const getAllUserMentionKeys: (state: GlobalState) => UserMentionKey[];
export declare const getSearchTruncationInfo: (state: GlobalState) => {
posts: number;
files: number;
} | undefined;
export declare const isSearchTruncated: (state: GlobalState, searchType: "posts" | "files") => boolean;