import { ChatConfigurator } from "../../shared/framework";
import { StickerConfiguration } from "./StickerConfiguration";
import { StickersExtensionDecorator } from "./StickersExtensionDecorator";
export class StickersExtension {
    //Configuration prop taken as optional field in constructor
    configuration;
    constructor(stickerConfiguration) {
        this.configuration = new StickerConfiguration({
            ...stickerConfiguration
        });
    }
    //override enable method from ExtensionsDataSource interface
    enable() {
        ChatConfigurator.enable((dataSource) => {
            return new StickersExtensionDecorator({
                dataSource,
                configration: this.configuration
            });
        });
    }
}
//# sourceMappingURL=StickersExtension.js.map