mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
7 lines (6 loc) • 426 B
TypeScript
import type { ServerLimits } from '@mattermost/types/limits';
import type { GlobalState } from '@mattermost/types/store';
export declare function getServerLimits(state: GlobalState): ServerLimits;
export declare function getPostHistoryLimit(state: GlobalState): number;
export declare function hasPostHistoryLimit(state: GlobalState): boolean;
export declare function shouldShowPostHistoryLimits(state: GlobalState): boolean;