UNPKG

@microsoft/botbuilder-m365

Version:

M365 extensions for Microsoft BotBuilder, Alpha release.

27 lines 997 B
/** * @module botbuilder-m365 */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Plan, PredictedCommand } from './Planner'; export interface ParsedCommandResult { length: number; command?: PredictedCommand; } export declare class ResponseParser { static parseAdaptiveCard(text?: string): Record<string, any> | undefined; static parseJSON<T = Record<string, any>>(text?: string): T | undefined; static parseResponse(text?: string): Plan; static parseDoCommand(tokens: string[]): ParsedCommandResult; static parseSayCommand(tokens: string[]): ParsedCommandResult; /** * Simple text tokenizer. Breaking characters are added to list as separate tokens. * * @param {string} text Optional. Text string to tokenize. * @returns {[string]} Array of tokens. */ static tokenizeText(text?: string): string[]; } //# sourceMappingURL=ResponseParser.d.ts.map