stream-chat-react
Version:
React components to create chat conversations or livestream style chat
5 lines (4 loc) • 499 B
TypeScript
import type { LocalMessage, MessageResponse, StreamChat, UpdateMessageOptions } from 'stream-chat';
type UpdateHandler = (cid: string, updatedMessage: LocalMessage | MessageResponse, options?: UpdateMessageOptions) => ReturnType<StreamChat['updateMessage']>;
export declare const useEditMessageHandler: (doUpdateMessageRequest?: UpdateHandler) => (updatedMessage: LocalMessage | MessageResponse, options?: UpdateMessageOptions) => Promise<import("stream-chat").UpdateMessageAPIResponse>;
export {};