UNPKG

mattermost-redux

Version:

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

19 lines (18 loc) 854 B
import type { RemoteClusterInfo } from '@mattermost/types/shared_channels'; import type { ActionFuncAsync } from 'mattermost-redux/types/actions'; export declare function receivedChannelRemotes(channelId: string, remotes: RemoteClusterInfo[]): { type: "RECEIVED_CHANNEL_REMOTES"; data: { channelId: string; remotes: RemoteClusterInfo[]; }; }; export declare function receivedRemoteClusterInfo(remoteId: string, remoteInfo: RemoteClusterInfo): { type: "RECEIVED_REMOTE_CLUSTER_INFO"; data: { remoteId: string; remoteInfo: RemoteClusterInfo; }; }; export declare function fetchChannelRemotes(channelId: string, forceRefresh?: boolean): ActionFuncAsync<RemoteClusterInfo[]>; export declare function fetchRemoteClusterInfo(remoteId: string, forceRefresh?: boolean): ActionFuncAsync<RemoteClusterInfo>;