stream-chat-react
Version:
React components to create chat conversations or livestream style chat
17 lines (16 loc) • 505 B
TypeScript
import type { AIState, Channel } from 'stream-chat';
export declare const AIStates: {
Error: string;
ExternalSources: string;
Generating: string;
Idle: string;
Thinking: string;
};
/**
* A hook that returns the current state of the AI.
* @param {Channel} channel - The channel for which we want to know the AI state.
* @returns {{ aiState: AIState }} The current AI state for the given channel.
*/
export declare const useAIState: (channel?: Channel) => {
aiState: AIState;
};