UNPKG

869 BTypeScriptView Raw
1import { TSESTree } from '../../ts-estree';
2import * as TSESLint from '../../ts-eslint';
3/**
4 * Get the variable of a given name.
5 *
6 * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#findvariable}
7 */
8declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null;
9/**
10 * Get the innermost scope which contains a given node.
11 *
12 * @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#getinnermostscope}
13 * @returns The innermost scope which contains the given node.
14 * If such scope doesn't exist then it returns the 1st argument `initialScope`.
15 */
16declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope;
17export { findVariable, getInnermostScope };
18//# sourceMappingURL=scopeAnalysis.d.ts.map
\No newline at end of file