/** * @fileoverview * This module contains the logic for normalizing import specifiers. It must use * fully-specified filepaths here, since the bootstrap script will compile it * with esbuild and then use it to normalize emitted output. */ /** * Matches a complete import statement, including the import keyword, as well as * dynamic imports, requires, and export statements. */ export declare const generateImportPattern: (importSource: string) => RegExp; /** * Rewrite an import/export/require statement. */ export declare const rewriteImportStatement: (importStatement: string, specifierToReplace: string, specifierReplacement: string) => string; /** * Rewrite imports in the emitted JS to ESM-compliant paths. */ export declare const normalizeImportSpecifiers: (files?: string) => Promise;