import { ESLintUtils, TSESTree } from "@typescript-eslint/utils"; import { type MinAppVersionOptions } from "../minAppVersion.js"; /** * Whether this rule reports `call` when it is made on the global `document`, * as it then always does: `document.createElement(tag)`, * `document.createElementNS(svgNamespace, tag, …)`, * `document.createDocumentFragment()` and `document.createEl("div" | "span", …)`. * The replacement calls a global helper (`createEl(tag)`, `createDiv()`, …), * which leaves no `document` for prefer-active-doc to report. Inside an * implementation of the helpers themselves, such as a polyfill, this rule * reports nothing, so prefer-active-doc reports `document` there. Nor where * `minAppVersion` is known to be older than the helper, as `createSvg()` * (1.1.0) is for a plugin that supports 1.0.0; `null` skips that check. */ export declare function isReportedOnGlobalDocument(call: TSESTree.CallExpression, minAppVersion?: string | null): boolean; export declare function isInHelperImplementation(node: TSESTree.Node): boolean; type MessageIds = "preferCreateEl" | "preferCreateElSuggestion" | "preferCreateElSuggestionSince"; declare const _default: ESLintUtils.RuleModule; export default _default;