import { defineTapPropertyExtension } from '@iotize/tap';
import { TapNLinkUpdater } from '@iotize/tap/firmware-update';
var ɵ0 = function (context) { return new TapFirmwareUpdateExtension(context); };
export var _TAP_EXTENSION_FIRMWARE_UPDATE_ = defineTapPropertyExtension('firmwareUpdater', ɵ0);
/**
 * @deprecated use _TAP_EXTENSION_FIRMWARE_UPDATE_ instead
 */
export var __DEFINED_PROPERTY_GETTER_FIRMWARE_UPDATE_ = _TAP_EXTENSION_FIRMWARE_UPDATE_;
var TapFirmwareUpdateExtension = /** @class */ (function () {
    function TapFirmwareUpdateExtension(context) {
        this.context = context;
    }
    TapFirmwareUpdateExtension.prototype.createLoader = function (packet, options) {
        return TapNLinkUpdater.create(this.context.tap, packet, options);
    };
    TapFirmwareUpdateExtension.prototype.apply = function (packet, options) {
        return this.createLoader(packet, options).asObservable();
    };
    return TapFirmwareUpdateExtension;
}());
export { TapFirmwareUpdateExtension };
export { ɵ0 };
// export function firmwareUpdater(
//     this: Tap,
//     options?: TapNLinkUpdater.Options
// ): TapNLinkUpdater {
//     return new TapNLinkUpdater(this, options);
// }
// Tap.prototype.firmwareUpdater = firmwareUpdater;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlybXdhcmUtdXBkYXRlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGlvdGl6ZS90YXAvZXh0L2Zpcm13YXJlLXVwZGF0ZS8iLCJzb3VyY2VzIjpbImxpYi9maXJtd2FyZS11cGRhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDBCQUEwQixFQUFPLE1BQU0sYUFBYSxDQUFDO0FBQzlELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztTQVkxRCxVQUFDLE9BQU8sSUFBSyxPQUFBLElBQUksMEJBQTBCLENBQUMsT0FBTyxDQUFDLEVBQXZDLENBQXVDO0FBRnhELE1BQU0sQ0FBQyx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