1 | import { DepGraphBuildOptions, Overrides, PackageJsonBase, ProjectParseOptions } from '../types';
|
2 | import { extractPkgsFromNpmLockV2 } from './extract-npm-lock-v2-pkgs';
|
3 | import type { NpmLockPkg } from './extract-npm-lock-v2-pkgs';
|
4 | import { DepGraph } from '@snyk/dep-graph';
|
5 | export { extractPkgsFromNpmLockV2 };
|
6 | export declare const parseNpmLockV2Project: (pkgJsonContent: string, pkgLockContent: string, options: ProjectParseOptions) => Promise<DepGraph>;
|
7 | export declare const buildDepGraphNpmLockV2: (npmLockPkgs: Record<string, NpmLockPkg>, pkgJson: PackageJsonBase, options: DepGraphBuildOptions) => Promise<DepGraph>;
|
8 | export declare const getChildNodeKey: (name: string, version: string, ancestry: {
|
9 | name: string;
|
10 | key: string;
|
11 | inBundle: boolean;
|
12 | }[], pkgs: Record<string, NpmLockPkg>, pkgKeysByName: Map<string, string[]>) => string | undefined;
|
13 | export declare const matchOverrideKey: (overrides: Overrides, pkg: {
|
14 | name: string;
|
15 | version: string;
|
16 | }) => string | null;
|