/** * @module botbuilder-dialogs-adaptive-teams */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { ExpressionProperty } from 'adaptive-expressions'; import { BotFrameworkAdapter } from 'botbuilder'; import { DialogContext } from 'botbuilder-dialogs'; import { Test } from 'botbuilder-stdlib'; /** * Get the value of the string expression from the Dialog Context. * * @param {DialogContext} dc A DialogContext object. * @param {ExpressionProperty} expressionProperty The expressionProperty to use to retrieve a value from the DialogContext. * @returns {string} The value of the evaluated stringExpression. */ export declare function getValue(dc: DialogContext, expressionProperty?: ExpressionProperty): T | undefined; /** * dc.context.adapter is typed as a BotAdapter, not containing getUserToken and getSignInLink. However, both * BotFrameworkAdapter and TestAdapter contain them, so we just need to make sure that dc.context.adapter contains * an adapter with the appropriate auth methods. */ export interface HasAuthMethods { getUserToken: typeof BotFrameworkAdapter.prototype.getUserToken; getSignInLink: typeof BotFrameworkAdapter.prototype.getSignInLink; } /** * Test to assert val has required auth methods. * * @param {any} val Usually context.adapter. * @returns {Assertion} Asserts that val has required auth methods. */ export declare const testAdapterHasAuthMethods: Test; //# sourceMappingURL=actionHelpers.d.ts.map