Urara-Blog/node_modules/.pnpm-store/v3/files/34/181ac7397d66a82b0b64a66835e276691f80fb3a5fd0c198024d6b8e851b06597128072a151fafec96d2704d33071486df0c708bd9189df7a951433e3feb87
2022-08-14 01:14:53 +08:00

18 lines
No EOL
869 B
Text

import { TSESTree } from '../../ts-estree';
import * as TSESLint from '../../ts-eslint';
/**
* Get the variable of a given name.
*
* @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#findvariable}
*/
declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null;
/**
* Get the innermost scope which contains a given node.
*
* @see {@link https://eslint-utils.mysticatea.dev/api/scope-utils.html#getinnermostscope}
* @returns The innermost scope which contains the given node.
* If such scope doesn't exist then it returns the 1st argument `initialScope`.
*/
declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope;
export { findVariable, getInnermostScope };
//# sourceMappingURL=scopeAnalysis.d.ts.map