/** * Loads `compilerOptions.paths` keys from tsconfig, following `extends` recursively. */ export declare function loadTsconfigPathPrefixes(projectRoot: string): string[]; export declare function matchesTsconfigPathPrefix(specifier: string, prefixes: readonly string[]): boolean; /** * Returns true when `specifier` looks like a bare npm package import rather than * a relative path, absolute path, node built-in, tsconfig alias, or `#` import map. */ export declare function isBarePackageImportSpecifier(specifier: string, projectRoot?: string): boolean; /** * Resolves a bare npm package entry for browser vendor prebundles. * * @remarks * Framework-owned dual packages such as `@ecopages/core` keep browser-first * `mainFields` and `conditionNames` so vendor prebundles pick the browser facade. * Third-party packages prefer ESM (`module` / `import`) and omit the `browser` * export condition so legacy UMD `exports.browser` entries cannot win during * Rolldown bundling. */ export declare function resolveBarePackageBrowserEntry(projectRoot: string, specifier: string): string | undefined; /** * Resolves a relative import against the filesystem without requiring tsconfig. * * @remarks * Used when oxc-resolver has no tsconfig (minimal fixtures / apps without paths) * and as a fallback when the resolver cannot locate a relative specifier. */ export declare function resolveRelativeModulePath(fromFile: string, specifier: string): string | undefined; /** * Resolves a relative or tsconfig path alias import (via oxc-resolver). */ export declare function resolveProjectModulePath(projectRoot: string, fromFile: string, specifier: string): string | undefined; /** * Resolves a TS path alias import using the app's tsconfig `paths` (via oxc-resolver). */ export declare function resolveProjectImportPath(projectRoot: string, fromFile: string, specifier: string): string | undefined;