"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "getHTMLElement", {
    enumerable: true,
    get: function() {
        return getHTMLElement;
    }
});
const _utils = require("../../../utils");
const getHTMLElement = (target)=>{
    if (!target || !_utils.canUseDOM) {
        return null;
    }
    if (typeof target === 'string') {
        return document.querySelector(target);
    }
    if ('current' in target) {
        return target.current;
    }
    return target;
};
