stream-chat
Version:
JS SDK for the Stream Chat API
6 lines (5 loc) • 456 B
TypeScript
import type { TextComposerMiddlewareExecutorState } from './TextComposerMiddlewareExecutor';
import type { CommandSuggestion } from './types';
import type { Middleware } from '../../../middleware';
export type CommandStringExtractionMiddleware = Middleware<TextComposerMiddlewareExecutorState<CommandSuggestion>, 'onChange' | 'onSuggestionItemSelect'>;
export declare const createCommandStringExtractionMiddleware: () => CommandStringExtractionMiddleware;