mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
17 lines (16 loc) • 1.33 kB
TypeScript
import type { AnyAction } from 'redux';
import type { CustomEmoji } from '@mattermost/types/emojis';
import type { GlobalState } from '@mattermost/types/store';
import type { ActionFuncAsync } from 'mattermost-redux/types/actions';
export declare let systemEmojis: Set<string>;
export declare function setSystemEmojis(emojis: Set<string>): void;
export declare function createCustomEmoji(emoji: any, image: any): ActionFuncAsync<CustomEmoji, GlobalState, AnyAction>;
export declare function getCustomEmoji(emojiId: string): ActionFuncAsync<CustomEmoji, GlobalState, AnyAction>;
export declare function getCustomEmojiByName(name: string): ActionFuncAsync;
export declare function getCustomEmojisByName(names: string[]): ActionFuncAsync;
export declare function getCustomEmojisInText(text: string): ActionFuncAsync;
export declare function getCustomEmojis(page?: number, perPage?: number, sort?: string, loadUsers?: boolean): ActionFuncAsync<CustomEmoji[]>;
export declare function loadProfilesForCustomEmojis(emojis: CustomEmoji[]): ActionFuncAsync;
export declare function deleteCustomEmoji(emojiId: string): ActionFuncAsync;
export declare function searchCustomEmojis(term: string, options?: any, loadUsers?: boolean): ActionFuncAsync<CustomEmoji[]>;
export declare function autocompleteCustomEmojis(name: string): ActionFuncAsync;