mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
8 lines (7 loc) • 837 B
TypeScript
import type { ChannelBookmark, ChannelBookmarkCreate, ChannelBookmarkPatch } from '@mattermost/types/channel_bookmarks';
import type { ActionFuncAsync } from 'mattermost-redux/types/actions';
export declare function deleteBookmark(channelId: string, id: string, connectionId: string): ActionFuncAsync<boolean>;
export declare function createBookmark(channelId: string, bookmark: ChannelBookmarkCreate, connectionId: string): ActionFuncAsync<boolean>;
export declare function editBookmark(channelId: string, id: string, patch: ChannelBookmarkPatch, connectionId: string): ActionFuncAsync<boolean>;
export declare function reorderBookmark(channelId: string, id: string, newOrder: number, connectionId: string): ActionFuncAsync<boolean>;
export declare function fetchChannelBookmarks(channelId: string): ActionFuncAsync<ChannelBookmark[]>;