import type { TSESLint, TSESTree } from '@typescript-eslint/utils'; import type { Rule } from 'eslint'; import type { Node } from 'estree-jsx'; export declare function getAncestors(context: Rule.RuleContext, node: Node): Node[]; export declare function getAncestors(context: TSESLint.RuleContext, node: TSESTree.Node): TSESTree.Node[];