"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MOBILE_TEXT_FIELD_TYPES = exports.MOBILE_ELEMENT_IDENTIFIER_PROPERTY = exports.ClientLogLevel = exports.AndroidElementType = exports.XCUIElementType = void 0;
exports.isElementReference = isElementReference;
exports.isAppiumNoSuchElementError = isAppiumNoSuchElementError;
var XCUIElementType;
(function (XCUIElementType) {
    XCUIElementType["button"] = "XCUIElementTypeButton";
    XCUIElementType["checkbox"] = "XCUIElementTypeCheckBox";
    XCUIElementType["icon"] = "XCUIElementTypeIcon";
    XCUIElementType["image"] = "XCUIElementTypeImage";
    XCUIElementType["other"] = "XCUIElementTypeOther";
    XCUIElementType["searchField"] = "XCUIElementTypeSearchField";
    XCUIElementType["secureTextField"] = "XCUIElementTypeSecureTextField";
    XCUIElementType["staticText"] = "XCUIElementTypeStaticText";
    XCUIElementType["switch"] = "XCUIElementTypeSwitch";
    XCUIElementType["textField"] = "XCUIElementTypeTextField";
    XCUIElementType["textView"] = "XCUIElementTypeTextView";
})(XCUIElementType || (exports.XCUIElementType = XCUIElementType = {}));
var AndroidElementType;
(function (AndroidElementType) {
    AndroidElementType["autoCompleteTextView"] = "android.widget.AutoCompleteTextView";
    AndroidElementType["button"] = "android.widget.Button";
    AndroidElementType["editText"] = "android.widget.EditText";
    AndroidElementType["multiAutoCompleteTextView"] = "android.widget.MultiAutoCompleteTextView";
})(AndroidElementType || (exports.AndroidElementType = AndroidElementType = {}));
var ClientLogLevel;
(function (ClientLogLevel) {
    ClientLogLevel["debug"] = "debug";
    ClientLogLevel["error"] = "error";
    ClientLogLevel["info"] = "info";
    ClientLogLevel["silent"] = "silent";
    ClientLogLevel["trace"] = "trace";
    ClientLogLevel["warn"] = "warn";
})(ClientLogLevel || (exports.ClientLogLevel = ClientLogLevel = {}));
exports.MOBILE_ELEMENT_IDENTIFIER_PROPERTY = 'element-6066-11e4-a52e-4f735466cecf';
exports.MOBILE_TEXT_FIELD_TYPES = [
    XCUIElementType.textField,
    XCUIElementType.secureTextField,
    XCUIElementType.textView,
    XCUIElementType.searchField,
    AndroidElementType.editText,
    AndroidElementType.autoCompleteTextView,
    AndroidElementType.multiAutoCompleteTextView,
];
function isElementReference(value) {
    return !!value[exports.MOBILE_ELEMENT_IDENTIFIER_PROPERTY];
}
function isAppiumNoSuchElementError(value) {
    return !!value.error;
}
