export interface ILocalPurl { purl: string; requirement?: string; scope?: string; } export interface ILocalDependency { file: string; purls: Array; } export interface ILocalDependencies { files: Array; } /** * @param fileContent - Raw file content * @param filePath - Absolute path to the file being parsed * @param basePath - Scan root directory. Limits upward directory searches (e.g., finding gradle/libs.versions.toml). * When omitted, parsers that walk the directory tree will search up to the filesystem root. */ export type ParserFuncType = (fileContent: string, filePath: string, basePath?: string) => Promise; export interface ParserDefinitions { [key: string]: ParserFuncType; }