1 |
|
2 |
|
3 |
|
4 |
|
5 | import * as BB from 'botbuilder';
|
6 | import { BotMemory } from './Memory/BotMemory';
|
7 | import { BotState } from './Memory/BotState';
|
8 | import { AppBase } from '@conversationlearner/models';
|
9 | export 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 | }
|