export declare const JS_MOUSE_SCROLL = "\nvar __extends =\n(this && this.__extends) ||\nfunction (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype =\n b === null ? Object.create(b) : ((__.prototype = b.prototype), new __());\n};\nvar scrollTo;\n(function (scrollTo) {\n function simulate(list, xOffset, yOffset) {\n var wheelEvent = new WheelEvent(\"wheel\", {\n deltaY: yOffset,\n deltaX: xOffset,\n });\n list.dispatchEvent(wheelEvent);\n }\n scrollTo.simulate = simulate;\n})(scrollTo || (scrollTo = {}));\n"; export declare const JS_MOUSE_SCROLL_BY_QS: string; export declare const JS_MOUSE_SCROLL_BY_XPATH: string; export declare const JS_GET_PROP = "return arguments[0][arguments[1]];"; export declare const JS_MOUSE_CLICK = "arguments[0].click();"; export declare const JS_ELEM_EXEC_FUNC: (funcName: string, await: boolean) => string; export declare const JS_ELEM_SET_ATTRIB: (key: string, value: string) => string; export declare const JS_GET_ABSOLUTE_XPATH = "\nfunction absoluteXPath(element) {\n const parent = null;\n const comps = [];\n let xpath = '';\n let comp;\n\n function getPos(element) {\n let position = 1;\n let curNode;\n\n if (element.nodeType === Node.ATTRIBUTE_NODE) {\n return null;\n }\n\n for (curNode = element.previousSibling; curNode; curNode = curNode.previousSibling) {\n curNode.nodeName === element.nodeName && ++position;\n }\n\n return position;\n }\n\n if (element instanceof Document) {\n return '/';\n }\n\n for (; element && !(element instanceof Document);\n element = element.nodeType === Node.ATTRIBUTE_NODE ? element.ownerElement : element.parentNode) {\n comp = comps[comps.length] = {};\n\n switch (element.nodeType) {\n case Node.TEXT_NODE: comp.name = 'text()';\n break;\n case Node.ATTRIBUTE_NODE:\n comp.name = '@' + element.nodeName;\n break;\n case Node.PROCESSING_INSTRUCTION_NODE: comp.name = 'processing-instruction()';\n break;\n case Node.COMMENT_NODE:\n comp.name = 'comment()';\n break;\n case Node.ELEMENT_NODE:comp.name = element.nodeName;\n break;\n }\n\n comp.position = getPos(element);\n }\n\n for (let i = comps.length - 1; i >= 0; i--) {\n comp = comps[i]; xpath += '/' + comp.name.toLowerCase(); if (comp.position !== null) {\n xpath += '[' + comp.position + ']';\n }\n }\n return xpath;\n} return absoluteXPath(arguments[0]);\n"; export declare const JS_WINDOW_SCROLL_TO_BOTTOM = "window.scrollTo(0, document.body.scrollHeight);"; export declare const JS_WINDOW_GET_ENTRIES = "return window.performance.getEntries();"; export declare const JS_IS_DOC_READY = "return document.readyState;";