botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
34 lines • 1.49 kB
TypeScript
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { CustomDeserializer, ResourceExplorer } from 'botbuilder-dialogs-declarative';
import { BeginDialogConfiguration, DynamicBeginDialog } from './actions';
/**
* Internal serializer for `DynamicBeginDialog` which bind the x.dialog resourceId to the DynamicBeginDialog.dialog property.
*/
export declare class DynamicBeginDialogDeserializer implements CustomDeserializer<DynamicBeginDialog, BeginDialogConfiguration> {
private readonly _resourceExplorer;
private readonly _resourceId;
/**
* Intializes an instance of `DynamicBeginDialogDeserializer`.
*
* @param _resourceExplorer The `ResourceExplorer` used by the deserializer.
* @param _resourceId The resource id of the dynamic dialog.
*/
constructor(_resourceExplorer: ResourceExplorer, _resourceId: string);
/**
* The method that loads the configuration object to a `DynamicBeginDialog` object.
*
* @param config The configuration object to deserialize.
* @param type The object type that the configuration will be deserialized to.
* @returns A `DynamicBeginDialog` object created from the configuration.
*/
load(config: BeginDialogConfiguration, type: {
new (...args: unknown[]): DynamicBeginDialog;
}): DynamicBeginDialog;
}
//# sourceMappingURL=dynamicBeginDialogDeserializer.d.ts.map