easemob-chat-uikit
Version:
   ![GitHub last c
21 lines (20 loc) • 689 B
TypeScript
import { ChatType } from '../../module/types/messageType';
declare const usePinnedMessage: (params?: {
conversation?: {
conversationType?: ChatType | undefined;
conversationId?: string | undefined;
} | undefined;
pageSize?: number | undefined;
} | undefined) => {
list: import("easemob-websdk").EasemobChat.PinnedMessageInfo[];
cursor: string | null;
pageSize: number;
visible: boolean;
show: () => void;
hide: () => void;
pinMessage: (messageId: string) => Promise<void>;
unpinMessage: (messageId: string) => Promise<void>;
getPinnedMessages: () => void;
clearPinnedMessages: () => void;
};
export { usePinnedMessage };