UNPKG

1.09 kBTypeScriptView Raw
1/**
2 * @module botbuilder
3 */
4/**
5 * Copyright (c) Microsoft Corporation. All rights reserved.
6 * Licensed under the MIT License.
7 */
8import { BotFrameworkAdapter } from '../botFrameworkAdapter';
9import { Activity, TurnContext } from 'botbuilder-core';
10/**
11 * Looks for OAuthCards in Activity attachments and takes action on them
12 */
13export declare class TokenResolver {
14 private static readonly PollingIntervalMs;
15 /**
16 * Checks if we have token responses from OAuth cards.
17 * @param adapter The [BotFrameworkAdapter](xref:botbuilder.BotFrameworkAdapter).
18 * @param context The [TurnContext](xref:botbuilder-core.TurnContext) for this turn.
19 * @param activity The [Activity](xref:botframework-schema.Activity) to be checked.
20 * @param log Optional. The log to write on.
21 */
22 static checkForOAuthCards(adapter: BotFrameworkAdapter, context: TurnContext, activity: Activity, log?: string[]): void;
23 /**
24 * @private
25 */
26 private static pollForToken;
27 private static createTokenResponseActivity;
28}
29//# sourceMappingURL=tokenResolver.d.ts.map
\No newline at end of file