Files
memecoin-botV2/.pnpm-store/v10/files/7a/901cd1ae369df677971347d587762649ead5ae23d1bc3a15beb3c609729fe248b4c74800f70bf3f24c18ff6798cb785de7b7b83a4cca731a8a7c1dc598e436

18 lines
1.0 KiB
Plaintext

import type { TSESLint, TSESTree } from '@typescript-eslint/utils';
import * as ts from 'typescript';
export * from '@typescript-eslint/utils/ast-utils';
/**
* Get the `loc` object of a given name in a `/*globals` comment directive.
* @param sourceCode The source code to convert index to loc.
* @param comment The `/*globals` comment directive which include the name.
* @param name The name to find.
* @returns The `loc` object.
*/
export declare function getNameLocationInGlobalDirectiveComment(sourceCode: TSESLint.SourceCode, comment: TSESTree.Comment, name: string): TSESTree.SourceLocation;
export declare function forEachReturnStatement<T>(body: ts.Block, visitor: (stmt: ts.ReturnStatement) => T): T | undefined;
/**
* Rough equivalent to ts.forEachChild for ESTree nodes.
* It returns the first truthy value returned by the callback, if any.
*/
export declare function forEachChildESTree<Result>(node: TSESTree.Node, callback: (child: TSESTree.Node) => false | Result | null | undefined): Result | undefined;