API/api.medcify.app/node_modules/snyk/dist/lib/policy/find-and-load-policy.d.ts
2022-09-26 11:41:44 +05:30

12 lines
556 B
TypeScript

import { PackageExpanded } from 'snyk-resolve-deps';
import { SupportedPackageManagers } from '../package-managers';
import { PolicyOptions } from '../types';
export declare function findAndLoadPolicy(root: string, scanType: SupportedPackageManagers | 'docker' | 'iac' | 'cpp', options: PolicyOptions, pkg?: PackageExpanded, scannedProjectFolder?: string): Promise<Policy | undefined>;
export interface Policy {
filter(vulns: any, root?: string, matchStrategy?: string): any;
exclude?: {
[key: string]: string[];
};
ignore?: any;
}