/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { DialogContext } from '../../dialogContext'; import { MemoryScope } from './memoryScope'; export declare class SettingsMemoryScope extends MemoryScope { private readonly initialSettings?; private static readonly blockingList; /** * Initializes a new instance of the SettingsMemoryScope class. * * @param initialSettings initial set of settings to supply */ constructor(initialSettings?: Record); /** * Gets the backing memory for this scope. * * @param {DialogContext} dialogContext The DialogContext object for this turn. * @returns {Record} The memory for the scope. */ getMemory(dialogContext: DialogContext): Record; /** * @param dialogContext Current dialog context. */ load(dialogContext: DialogContext): Promise; /** * Build a dictionary view of configuration providers. * * @param {Record} configuration The configuration that we are running with. * @returns {Record} Projected dictionary for settings. */ protected static loadSettings(configuration: Record): Record; /** * Generate a node tree with the flatten settings. * For example: * { * "array":["item1", "item2"], * "object":{"array":["item1"], "2":"numberkey"} * } * * Would generate a flatten settings like: * array:0 item1 * array:1 item2 * object:array:0 item1 * object:2 numberkey * * After Converting it from flatten settings into node tree, would get: * * null * | | * array object * | | | | * 0 1 array 2 * | | | | * item1 item2 0 numberkey * | * item1 * The result is a Tree. * * @param {Array<[string, string]>} kvs Configurations with key value pairs. * @returns {Node} The root node of the tree. */ private static convertFlattenSettingToNode; private static convertNodeToObject; private static filterSettings; private static deletePropertyPath; }