UNPKG

node-nlp

Version:

Library for NLU (Natural Language Understanding) done in Node.js

43 lines (42 loc) 1.3 kB
/** * @module botbuilder */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { MemoryStorage } from './memoryStorage'; /** * Storage provider that uses browser local storage. * * @remarks * Anything written to the store will remain persisted until the user manually flushes their * browsers cookies and other site data. * * ```JavaScript * const { BrowserLocalStorage, UserState } = require('botbuilder'); * * const userState = new UserState(new BrowserLocalStorage()); * ``` */ export declare class BrowserLocalStorage extends MemoryStorage { constructor(); } /** * Storage provider that uses browser session storage. * * @remarks * Anything written to the store will only be persisted for the lifetime of a single page within a * browser tab. The storage will survive page reloads but closing the tab will delete anything * persisted by the store and opening a new browser tab will create a new persistance store for the * page. * * ```JavaScript * const { BrowserSessionStorage, ConversationState } = require('botbuilder'); * * const conversationState = new ConversationState(new BrowserSessionStorage()); * ``` */ export declare class BrowserSessionStorage extends MemoryStorage { constructor(); }