import type { types as t, NodePath } from '@babel/core'; import type * as Babel from '@babel/core'; import { ImportSyntax } from './analyzer-syntax'; interface State { imports: ImportSyntax[]; handled: WeakSet; opts: { imports?: ImportSyntax[]; }; } export = analyzerPlugin; declare function analyzerPlugin(babel: typeof Babel): { visitor: { Program: { enter(_path: NodePath, state: State): void; exit(path: NodePath, state: State): void; }; CallExpression(path: NodePath, state: State): void; ImportDeclaration(path: NodePath, state: State): void; ExportNamedDeclaration(path: NodePath, state: State): void; ExportAllDeclaration(path: NodePath, state: State): void; }; };