import { path } from '@arcgis/components-build-utils'; import { CompilerContext } from '../context/index.ts'; export declare const rePath: RegExp; /** * Rewrite references to `./components/component-folder-name/component-file-name.js` with * `./components/component-tag-name/customElement.js` in `.js` and `.d.ts` files. * * @remarks * Assuming content includes POSIX paths only (as that's what import specifiers * in ECMAScript use) */ export declare const rewriteComponentImportSpecifiers: (code: string, context: Pick, cwd: string, originalCwd: string) => string; /** * The result of relative() is a path that does not start with `./`. * In import statements the path must begin with ../ or ./ to be interpreted as * a relative path rather than a package name. * This function makes sure that the result of relative() is normalized to start * with `./` or `../` */ export declare const toRelativeImportSpecifier: (typeof path)["relative"];