UNPKG

@nodesecure/js-x-ray

Version:
26 lines 841 B
import type { ESTree } from "meriyah"; import { SourceFile } from "../SourceFile.ts"; import type { Literal } from "../estree/types.ts"; /** * @description Search for ESM ImportDeclaration * @see https://github.com/estree/estree/blob/master/es2015.md#importdeclaration * @example * import * as foo from "bar"; * import fs from "fs"; * import "make-promises-safe"; */ declare function validateNode(node: ESTree.Node): [boolean, any?]; declare function main(node: (ESTree.ImportDeclaration | ESTree.ImportExpression) & { source: Literal<string>; }, options: { sourceFile: SourceFile; }): void; declare const _default: { name: string; validateNode: typeof validateNode; main: typeof main; breakOnMatch: boolean; breakGroup: string; }; export default _default; //# sourceMappingURL=isImportDeclaration.d.ts.map