UNPKG

975 BTypeScriptView Raw
1/**
2 * Copyright (c) Microsoft Corporation. All rights reserved.
3 * Licensed under the MIT License.
4 */
5import * as BB from 'botbuilder';
6import { BotMemory } from './Memory/BotMemory';
7import { BotState } from './Memory/BotState';
8import { AppBase } from '@conversationlearner/models';
9export declare class CLMemory {
10 private static memoryStorage;
11 private memCache;
12 private userkey;
13 private turnContext;
14 static Init(memoryStorage: BB.Storage | null): void;
15 private constructor();
16 static GetMemory(key: string): CLMemory;
17 static InitMemory(turnContext: BB.TurnContext): Promise<CLMemory>;
18 private Key;
19 GetAsync(datakey: string): Promise<any>;
20 SetAsync(datakey: string, jsonString: string): Promise<void>;
21 DeleteAsync(datakey: string): Promise<void>;
22 SetAppAsync(app: AppBase | null): Promise<void>;
23 readonly BotMemory: BotMemory;
24 readonly BotState: BotState;
25 readonly TurnContext: BB.TurnContext | undefined;
26}