mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
21 lines (20 loc) • 1.48 kB
TypeScript
import type { FileSearchResultItem } from '@mattermost/types/files';
import type { PostList, PostSearchResults } from '@mattermost/types/posts';
import type { SearchParameter } from '@mattermost/types/search';
import type { ActionResult, ActionFuncAsync, ThunkActionFunc } from 'mattermost-redux/types/actions';
export declare const WEBAPP_SEARCH_PER_PAGE = 20;
export declare function getMissingChannelsFromPosts(posts: PostList['posts']): ThunkActionFunc<unknown>;
export declare function getMissingChannelsFromFiles(files: Map<string, FileSearchResultItem>): ThunkActionFunc<Promise<ActionResult[]>>;
export declare function searchPostsWithParams(teamId: string, params: SearchParameter): ActionFuncAsync<PostSearchResults>;
export declare function searchPosts(teamId: string, terms: string, isOrSearch: boolean, includeDeletedChannels: boolean): ActionFuncAsync<PostSearchResults>;
export declare function getMorePostsForSearch(teamId: string): ActionFuncAsync;
export declare function clearSearch(): ActionFuncAsync;
export declare function searchFilesWithParams(teamId: string, params: SearchParameter): ActionFuncAsync;
export declare function getMoreFilesForSearch(teamId: string): ActionFuncAsync;
export declare function getFlaggedPosts(): ActionFuncAsync<PostList>;
export declare function getPinnedPosts(channelId: string): ActionFuncAsync;
declare const _default: {
clearSearch: typeof clearSearch;
searchPosts: typeof searchPosts;
};
export default _default;