import Yarn_processor from "./yarn_processor.js"; /** * Processor for Yarn Classic package manager * Handles parsing and processing of dependencies for Yarn Classic projects */ export default class Yarn_classic_processor extends Yarn_processor { #private; /** * Returns the command arguments for listing dependencies * @param {boolean} includeTransitive - Whether to include transitive dependencies * @returns {string[]} Command arguments for listing dependencies */ listCmdArgs(includeTransitive: boolean): string[]; /** * Returns the command arguments for updating the lock file * @returns {string[]} Command arguments for updating the lock file */ updateLockFileCmdArgs(): string[]; /** * Parses the dependency tree output from Yarn Classic * @param {string} output - The raw command output * @returns {string} Unchanged output as it's already in JSON format */ parseDepTreeOutput(output: string): string; /** * Extracts root dependencies from the dependency tree * @param {Object} depTree - The dependency tree object * @returns {Map} Map of dependency names to their PackageURL objects */ getRootDependencies(depTree: Object): Map; /** * Adds dependencies to the SBOM * @param {Sbom} sbom - The SBOM object to add dependencies to * @param {Object} depTree - The dependency tree object * @param {function(PackageURL): (Array<{alg: string, content: string}>|undefined)} [hashesForPurl] - Resolves lock-file hashes for a purl */ addDependenciesToSbom(sbom: Sbom, depTree: Object, hashesForPurl?: Function): void; /** * Recursively adds child dependencies to the SBOM * @param {Sbom} sbom - The SBOM object to add dependencies to * @param {Object} node - The current dependency node * @param {Map} purls - Map of dependency names to their PackageURL objects * @param {function(PackageURL): (Array<{alg: string, content: string}>|undefined)} hashesForPurl - Resolves lock-file hashes for a purl * @private */ private #addChildrenToSbom; }