|
import type { ScopeManager, Scope, Reference, Variable } from "eslint-scope"; |
|
import type * as ESTree from "estree"; |
|
import type { TSESTree } from "@typescript-eslint/types"; |
|
|
|
export declare function removeAllScopeAndVariableAndReference(target: ESTree.Node | TSESTree.Node, info: { |
|
visitorKeys?: { |
|
[type: string]: string[]; |
|
} | { |
|
readonly [type: string]: readonly string[] | undefined; |
|
}; |
|
scopeManager: ScopeManager; |
|
}): void; |
|
|
|
|
|
|
|
export declare function getScopeFromNode(scopeManager: ScopeManager, currentNode: ESTree.Node): Scope; |
|
|
|
|
|
|
|
export declare function findVariable(scopeManager: ScopeManager, node: ESTree.Identifier): Variable | null; |
|
|
|
|
|
|
|
export declare function getProgramScope(scopeManager: ScopeManager): Scope; |
|
|
|
export declare function removeIdentifierVariable(node: ESTree.Pattern | TSESTree.BindingName | TSESTree.RestElement | TSESTree.DestructuringPattern, scope: Scope): void; |
|
|
|
export declare function getAllReferences(node: ESTree.Pattern | TSESTree.BindingName | TSESTree.RestElement | TSESTree.DestructuringPattern, scope: Scope): Iterable<Reference>; |
|
|
|
export declare function removeIdentifierReference(node: ESTree.Identifier, scope: Scope): boolean; |
|
|
|
export declare function removeReference(reference: Reference, baseScope: Scope): void; |
|
|
|
export declare function removeScope(scopeManager: ScopeManager, scope: Scope): void; |
|
|
|
export declare function replaceScope(scopeManager: ScopeManager, scope: Scope, newChildScopes?: Scope[]): void; |
|
|
|
|
|
|
|
export declare function addVariable(list: Variable[], variable: Variable): void; |
|
|
|
|
|
|
|
export declare function addReference(list: Reference[], reference: Reference): void; |
|
|
|
|
|
|
|
export declare function addAllReferences(list: Reference[], elements: Reference[]): void; |
|
|
|
|
|
|
|
|
|
export declare function simplifyScope(scope: Scope): unknown; |
|
|