/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { MemoryScope } from './memoryScope'; import { DialogContext } from '../../dialogContext'; /** * A memory scope that provides access to the active dialog's state. * This scope binds to the active dialog if it is a container, or to its parent dialog if applicable. */ export declare class DialogMemoryScope extends MemoryScope { /** * Initializes a new instance of the DialogMemoryScope class. */ constructor(); /** * Gets the backing memory for this scope. * * @param dialogContext - The DialogContext object for this turn. * @returns The memory for the scope. */ getMemory(dialogContext: DialogContext): object; /** * Changes the backing object for the memory scope. * * @param dialogContext - The DialogContext object for this turn. * @param memory - Memory object to set for the scope. * @throws Will throw an error if the memory object is undefined or if no active dialog is found. */ setMemory(dialogContext: DialogContext, memory: object): void; /** * Determines if the given dialog context is a container. * * @private * @param dialogContext - The DialogContext object for this turn. * @returns A boolean indicating whether the dialog context is a container. */ private isContainer; }