stream-chat-react
Version:
React components to create chat conversations or livestream style chat
12 lines (11 loc) • 411 B
TypeScript
import type { Channel, EventTypes } from 'stream-chat';
export declare function useSelectedChannelState<O>(_: {
channel: Channel;
selector: (channel: Channel) => O;
stateChangeEventKeys?: EventTypes[];
}): O;
export declare function useSelectedChannelState<O>(_: {
selector: (channel: Channel) => O;
channel?: Channel | undefined;
stateChangeEventKeys?: EventTypes[];
}): O | undefined;