UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

41 lines (38 loc) 1.17 kB
import { TextEntityRecognizer } from './textEntityRecognizer'; import { ModelResult } from 'botbuilder-dialogs'; /** * @module botbuilder-dialogs-adaptive */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ export interface RegexEntityRecognizerConfiguration { name?: string; pattern?: string; } /** * Matches input against a regular expression. */ export declare class RegexEntityRecognizer extends TextEntityRecognizer implements RegexEntityRecognizerConfiguration { static $kind: string; constructor(); name: string; /* * Gets the regular expression pattern value. * * @returns The pattern. * Sets the pattern. */ pattern: string; private _pattern; /** * @protected * Match recognizing implementation. * @param text Text to match. * @param _culture Culture to use. * @returns The matched [ModelResult](xref:botbuilder-dialogs.ModelResult) list. */ protected _recognize(text: string, _culture: string): ModelResult[]; } //# sourceMappingURL=regexEntityRecognizer.d.ts.map