/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * @module botbuilder-node */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Storage, StoreItems } from 'botbuilder'; /** * :package: **botbuilder** * * A file based storage provider. Items will be persisted to a folder on disk. * * **Usage Example** * * ```JavaScript * const { FileStorage } = require('botbuilder'); * const path = require('path'); * * const storage = new FileStorage(path.join(__dirname, './state')); * ``` */ export declare class FileStorage implements Storage { static nextTag: number; private pEnsureFolder; protected readonly path: string; /** * Creates a new FileStorage instance. * @param path Root filesystem path for where the provider should store its items. */ constructor(filePath: string); read(keys: string[]): Promise; write(changes: StoreItems): Promise; delete(keys: string[]): Promise; private ensureFolder; private getFileName; private getFilePath; }