UNPKG

stream-chat

Version:

JS SDK for the Stream Chat API

8 lines (7 loc) 554 B
import type { MessageComposer } from '../../messageComposer'; import type { CommandResponse } from '../../../types'; export declare function escapeCommandRegExp(text: string): string; export declare const getRawCommandName: (text?: string) => string | undefined; export declare const getCompleteCommandInString: (text: string) => string | null; export declare const stripCommandFromText: (text: string, commandName: string) => string; export declare const notifyCommandDisabled: (composer: MessageComposer, command: CommandResponse) => true | undefined;