import { ChatConfigurator } from "../../shared/framework";
import { LinkPreviewExtentionDecorator } from "./LinkPreviewExtentionDecorator";
export class LinkPreviewExtention {
    linkPreviewConfiguration;
    constructor(linkPreviewConfiguration) {
        this.linkPreviewConfiguration = linkPreviewConfiguration ? linkPreviewConfiguration : undefined;
    }
    enable() {
        ChatConfigurator.enable((dataSource) => {
            return new LinkPreviewExtentionDecorator(dataSource, this.linkPreviewConfiguration);
        });
    }
}
//# sourceMappingURL=LinkPreviewExtention.js.map