mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
13 lines (12 loc) • 690 B
TypeScript
import type { FileSearchResultItem } from '@mattermost/types/files';
import type { Post } from '@mattermost/types/posts';
import type { ActionFuncAsync } from 'mattermost-redux/types/actions';
export declare function receivedFiles(files: Map<string, FileSearchResultItem>): {
type: "RECEIVED_FILES_FOR_SEARCH";
data: Map<string, FileSearchResultItem>;
};
export declare function getMissingFilesByPosts(posts: Post[]): ActionFuncAsync;
export declare function getFilesForPost(postId: string): ActionFuncAsync;
export declare function getFilePublicLink(fileId: string): ActionFuncAsync<{
link: string;
}, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;