import type { ResolvedPackageData } from '../resolve-pkg-data'; import type { Missing } from './generate-tree-madge'; export type MissingGroupItem = { originFile: string; packages?: string[]; files?: string[]; }; export type FoundPackages = { packages: { [packageName: string]: string; }; components: ResolvedPackageData[]; }; export declare class MissingHandler { private missing; private componentDir; private workspacePath; constructor(missing: Missing, componentDir: string, workspacePath: string); /** * Run over each entry in the missing array and transform the missing from list of paths * to object with missing types */ groupAndFindMissing(): { missingGroups: MissingGroupItem[]; foundPackages: FoundPackages; }; private processMissingGroup; /** * Group missing dependencies by types (files, packages) * @param {Array} missing list of missing paths to group * @returns {Function} function which group the dependencies */ private groupMissingByType; }