UNPKG

@microsoft/botbuilder-m365

Version:

M365 extensions for Microsoft BotBuilder, Alpha release.

27 lines 787 B
/** * @module botbuilder-m365 */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { TurnContext } from 'botbuilder'; import { PromptManager } from '../Prompts'; import { TurnState } from '../TurnState'; export declare enum BlockTypes { Undefined = 0, Text = 1, Code = 2, Variable = 3 } export declare abstract class Block { get type(): BlockTypes; content: string; renderCode(context: TurnContext, state: TurnState, promptManager: PromptManager<TurnState>): Promise<string>; abstract isValid(): { valid: boolean; errorMessage?: string; }; abstract render(context: TurnContext, state: TurnState): string; } //# sourceMappingURL=Block.d.ts.map