/** * Path Map is the extra data about the files and the dependencies, such as ImportSpecifiers and * custom-resolve-modules used. * The data is retrieved by dependency-tree which collects them from the various detectives. * It is used to update the final tree. */ import type { Specifier } from '@teambit/legacy.consumer-component'; export type PathMapDependency = { importSource: string; resolvedDep: string; importSpecifiers?: Specifier[]; }; /** * PathMap is used to get the ImportSpecifiers from dependency-tree library */ export type PathMapItem = { file: string; dependencies: PathMapDependency[]; }; export declare function convertPathMapToRelativePaths(pathMap: PathMapItem[], baseDir: string): PathMapItem[];