UNPKG

@botonic/plugin-flow-builder

Version:

Botonic plugin for **Hubtype Flow Builder**: run and bridge flow-driven logic from bots on the **current** line.

28 lines (27 loc) 884 B
import { BotonicContext } from '@botonic/core'; import { FlowBuilderApi } from '../api'; import { HtKeywordNode } from '../content-fields/hubtype-fields/index'; interface KeywordProps { cmsApi: FlowBuilderApi; locale: string; botonicContext: BotonicContext; userTextOrTranscript: string; } export declare class KeywordMatcher { cmsApi: FlowBuilderApi; locale: string; botonicContext: BotonicContext; isRegExp: boolean; matchedKeyword?: string; keywordNodeId?: string; userTextOrTranscript: string; flowId?: string; constructor({ cmsApi, locale, botonicContext, userTextOrTranscript, }: KeywordProps); getNodeByInput(): Promise<HtKeywordNode | undefined>; private getNodeByKeyword; private matchKeywords; private inputMatchesAnyKeyword; private resolveKeywordAsRegExp; private trackKeywordEvent; } export {};