UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

12 lines (11 loc) 473 B
import { StreamChat } from 'stream-chat'; import type { OwnUserResponse, StreamChatOptions, TokenOrProvider, UserResponse } from 'stream-chat'; /** * React hook to create, connect and return `StreamChat` client. */ export declare const useCreateChatClient: ({ apiKey, options, tokenOrProvider, userData, }: { apiKey: string; tokenOrProvider: TokenOrProvider; userData: OwnUserResponse | UserResponse; options?: StreamChatOptions; }) => StreamChat | null;