export type FileContent = { relativePath: string; content: string; }; /** * the packages imported by the files of a component. a package that only dev files (e.g. tests) import is "dev". */ export type ImportedPackages = Map; /** * the import specifiers of a file per its path and content hash. files that didn't change between versions are parsed * once. (not per content only, a detector may support a file by its name, e.g. env.jsonc). undefined when the file * can't be parsed. */ export type ImportsCache = Map; /** * the packages the given files import, found by parsing their content, without resolving the imports. a workspace * resolves each import against node_modules (see AutoDetectDeps), a bare scope has the files in memory only. * returns undefined when the imports of one of the files are unknown: it can't be parsed, or only an env detector * supports its type. */ export declare function detectImportedPackages(files: FileContent[], isDevFile?: (relativePath: string) => boolean, cache?: ImportsCache): Promise;