import { RecipeRef } from "../preconditions"; /** * Match source files by path glob. * * Returns a {@link RecipeRef} placeholder bundled with a native * {@link IsSourceFile} visitor for in-process evaluation. The framework * introspects a ``check(hasSourcePath(...), editor)`` wrapper at * PrepareRecipe time and emits the recipe identity directly in * ``editPreconditions``; the Java host's ``PreparedRecipeCache.instantiateVisitor`` * constructs the recipe and uses its visitor — no extra RPC round-trip * needed at editor() construction time. Unit tests without an active * RPC connection fall back to the bundled native visitor for real * filtering. * * Delegates to {@code org.openrewrite.FindSourceFiles}. */ export declare function hasSourcePath(filePattern: string): RecipeRef; /** * Match files using a specific method. * * Returns a {@link RecipeRef} placeholder bundled with a native * {@link UsesMethod} visitor for in-process evaluation; see * {@link hasSourcePath} for the introspection / lazy-evaluation pattern. * * ``methodPattern`` follows the OpenRewrite method-pattern syntax: * `` ()`` — e.g. * ``"*..* tostring(..)"`` or ``"java.util.Collections emptyList()"``. * * Delegates to {@code org.openrewrite.java.search.HasMethod}. */ export declare function usesMethod(methodPattern: string, matchOverrides?: boolean): RecipeRef; /** * Match files using a specific type. * * Returns a {@link RecipeRef} placeholder bundled with a native * {@link UsesType} visitor for in-process evaluation; see * {@link hasSourcePath} for the introspection / lazy-evaluation pattern. * * Delegates to {@code org.openrewrite.java.search.HasType}. */ export declare function usesType(fullyQualifiedTypeName: string, checkAssignability?: boolean): RecipeRef; /** * Find and mark methods matching a pattern. * * Returns a {@link RecipeRef} placeholder bundled with a native * {@link UsesMethod} visitor for in-process evaluation; see * {@link hasSourcePath} for the introspection / lazy-evaluation pattern. * * Delegates to {@code org.openrewrite.java.search.FindMethods}. */ export declare function findMethods(methodPattern: string, matchOverrides?: boolean): RecipeRef; /** * Find and mark usages of a type. * * Returns a {@link RecipeRef} placeholder bundled with a native * {@link UsesType} visitor for in-process evaluation; see * {@link hasSourcePath} for the introspection / lazy-evaluation pattern. * * Delegates to {@code org.openrewrite.java.search.FindTypes}. */ export declare function findTypes(fullyQualifiedTypeName: string): RecipeRef; //# sourceMappingURL=preconditions.d.ts.map