UNPKG

mattermost-redux

Version:

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

12 lines (11 loc) 768 B
import type { FileInfo, FileSearchResultItem } from '@mattermost/types/files'; import type { Post } from '@mattermost/types/posts'; import type { GlobalState } from '@mattermost/types/store'; export declare function getFile(state: GlobalState, id: string): FileInfo; export declare function getFilePublicLink(state: GlobalState): { link: string; } | undefined; export declare function makeGetFileIdsForPost(): (state: GlobalState, postId: string) => string[]; export declare function makeGetFilesForPost(): (state: GlobalState, postId: string) => FileInfo[]; export declare function makeGetFilesForEditHistory(): (state: GlobalState, editHistoryPost: Post) => FileInfo[]; export declare const getSearchFilesResults: (state: GlobalState) => FileSearchResultItem[];