function _define_property(obj, key, value) {
    if (key in obj) Object.defineProperty(obj, key, {
        value: value,
        enumerable: true,
        configurable: true,
        writable: true
    });
    else obj[key] = value;
    return obj;
}
class AttachmentPreviewManager {
    get() {
        return this.attachmentItem;
    }
    getTypeItem(key) {
        return this.attachmentItem[key];
    }
    add(options) {
        this.attachmentItem[options.key] = options;
    }
    constructor(_pluginAttachmentItems, app){
        _define_property(this, "attachmentItem", {});
        _define_property(this, "app", void 0);
        this.app = app;
        Object.entries(_pluginAttachmentItems || {}).forEach((param)=>{
            let [name, PluginItemsOptions] = param;
            this.add(PluginItemsOptions);
        });
    }
}
export { AttachmentPreviewManager };
