import { Recipe } from "../../recipe"; import { ExecutionContext } from "../../execution"; import { TreeVisitor } from "../../visitor"; /** * Finds npm/Node.js dependencies declared in package.json. * This recipe is commonly used as a precondition to limit the scope of other recipes * to projects that use a specific dependency. * * The search result marker is placed on the specific dependency entry in package.json, * allowing users to see exactly where the dependency is declared. * * When `onlyDirect` is false, this recipe also marks direct dependencies that * transitively depend on the target package, helping answer "which of my dependencies * brings in package X?". */ export interface FindDependencyOptions { packageName: string; version?: string; onlyDirect?: boolean; } export declare class FindDependency extends Recipe { readonly name = "org.openrewrite.javascript.dependencies.find-dependency"; readonly displayName = "Find Node.js dependency"; readonly description: string; packageName: string; version?: string; onlyDirect?: boolean; constructor(options: FindDependencyOptions); instanceName(): string; editor(): Promise>; } //# sourceMappingURL=find-dependency.d.ts.map