stream-chat-react
Version:
React components to create chat conversations or livestream style chat
14 lines (13 loc) • 433 B
TypeScript
import type { UserResponse } from 'stream-chat';
import type { RenderedMessage } from '../utils';
type UseLastReadDataParams = {
messages: RenderedMessage[];
returnAllReadData: boolean;
userID: string | undefined;
read?: Record<string, {
last_read: Date;
user: UserResponse;
}>;
};
export declare const useLastReadData: (props: UseLastReadDataParams) => Record<string, UserResponse[]>;
export {};