import type { Dependencies } from "./scanner.ts"; import type { StandardVulnerability } from "../../formats/standard/index.ts"; import type { Kind } from "../../constants.ts"; export type BaseStrategyFormat = "Standard" | "OSV"; export interface BaseStrategyOptions { useFormat?: BaseStrategyFormat; } export interface HydratePayloadDepsOptions extends BaseStrategyOptions { /** * Absolute path to the location to analyze * (with a package.json and/or package-lock.json for NPM Audit for example) **/ path?: string; } export interface BaseStrategy { /** Name of the strategy **/ strategy: T; /** Method to hydrate (insert/push) vulnerabilities in the dependencies retrieved by the Scanner **/ hydratePayloadDependencies: (dependencies: Dependencies, options: HydratePayloadDepsOptions) => Promise; } export interface ExtendedStrategy extends BaseStrategy { /** Method to get vulnerabilities using the current strategy **/ getVulnerabilities: (path: string, options?: BaseStrategyOptions) => Promise<(VulnFormat | StandardVulnerability)[]>; } //# sourceMappingURL=api.d.ts.map