import { ChatConfigurator } from "../../shared/framework";
import { TextModerationExtensionDecorator } from "./TextModerationExtensionDecorator";
export class TextModerationExtension {
    textModerationConfigurationInterface;
    constructor(textModerationConfiguration) {
        if (textModerationConfiguration != null) {
            this.textModerationConfigurationInterface = textModerationConfiguration;
        }
    }
    /**
    * enable
    *  @description enables the Text moderation extension which includes Data profanity and data masking
    */
    enable() {
        ChatConfigurator.enable((dataSource) => {
            return new TextModerationExtensionDecorator(dataSource, this.textModerationConfigurationInterface);
        });
    }
}
//# sourceMappingURL=TextModerationExtension.js.map