Object.defineProperty(exports, "__esModule", { value: true });
var ProtorClass_1 = require("./ProtorClass");
module.exports = function (api) {
    api.registerAction('fadeIn', 'Fade in', require('./actions/fadeIn'));
    api.registerAction('fadeOut', 'Fade out', require('./actions/fadeOut'));
    api.registerConnectionValidator('protor', function (validatorAPI) {
        if (validatorAPI.properties.ip != undefined && validatorAPI.properties.port != undefined) {
            var protor = new ProtorClass_1.Protor(validatorAPI.properties.ip, validatorAPI.properties.port);
            protor.isOnline(function (online) {
                validatorAPI.callback(online, online ? null : 'Unable to reach Protor instance');
                validatorAPI.setInstance(protor);
            });
        }
        else
            validatorAPI.callback(false, 'No ip or port specified');
    });
};
//# sourceMappingURL=protor.js.map