import * as t from '@babel/types'; import { ParseResult } from '@babel/parser'; import { ImportDeclaration, VariableDeclaration } from '@babel/types'; import { GTLibrary } from '../../../types/libraries.js'; export declare function determineModuleType(ast: ParseResult): boolean; export type ImportItem = string | { local: string; imported: string; source: string; }; export declare function generateImports(needsImport: ImportItem[], isESM: boolean, importMap: Record): (t.ImportDeclaration | t.VariableDeclaration)[]; export declare function generateImportMap(ast: ParseResult, pkg: string): { initialImports: string[]; importAlias: { TComponent: string; VarComponent: string; }; }; export declare function insertImports(ast: ParseResult, importNodes: (t.ImportDeclaration | t.VariableDeclaration)[]): void; export declare function createImports(ast: ParseResult, needsImport: ImportItem[], importMap: Record): void; export interface ImportNameResult { local: string; original: string; } export declare function extractImportName(node: ImportDeclaration | VariableDeclaration, pkgs: GTLibrary[], translationFuncs: string[]): ImportNameResult[];