/** * @module teams-ai */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { StatePropertyAccessor, TurnContext } from 'botbuilder'; import { TurnState } from './TurnState'; /** * Maps an application's Turn State property to a Bot State property. * Note: This is used to inject a Turn State property into a DialogSet. * @template T Optional. Type of the property being mapped. Defaults to any. */ export declare class TurnStateProperty implements StatePropertyAccessor { private readonly _state; private readonly _propertyName; /** * Creates a new instance of the `TurnStateProperty` class. * @param {TurnState} state Current application turn state. * @param {string} scopeName Name of properties the memory scope to use. * @param {string} propertyName Name of the property to use. */ constructor(state: TurnState, scopeName: string, propertyName: string); /** * Deletes the state property. * @returns {Promise} A promise that represents the work queued to execute. */ delete(): Promise; /** * Returns the state property value. */ get(context: TurnContext): Promise; get(context: TurnContext, defaultValue: T): Promise; /** * Replace's the state property value. * @template T * @param {TurnContext} context The context object for the turn. * @param {T} value The value to assign to the state property. * @returns {Promise} A promise that represents the work queued to execute. */ set(context: TurnContext, value: T): Promise; } //# sourceMappingURL=TurnStateProperty.d.ts.map