UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

12 lines 912 B
import type { Channel, StreamChat } from 'stream-chat'; import type { DefaultStreamChatGenerics } from '../../types/types'; export declare const getChannel: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(client: StreamChat<StreamChatGenerics>, type: string, id: string) => Promise<Channel<StreamChatGenerics>>; export declare const MAX_QUERY_CHANNELS_LIMIT = 30; declare type MoveChannelUpParams<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = { channels: Array<Channel<StreamChatGenerics>>; cid: string; activeChannel?: Channel<StreamChatGenerics>; }; export declare const moveChannelUp: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>({ activeChannel, channels, cid, }: MoveChannelUpParams<StreamChatGenerics>) => Channel<StreamChatGenerics>[]; export {}; //# sourceMappingURL=utils.d.ts.map