import type { PathPredicateFunction, PathPredicateFunctionAsync, PathWalkerProcessFunction } from '../types.js'; /** * Walk the filesystem up from a path, checking each path against a predicate (async) * @param pathToCheck Path to be checked against predicate * @param predicate Predicate to check path with * @param process Optional function to process path output * @returns Path that matched predicate */ export declare const walkFs: (pathToCheck: string, predicate: PathPredicateFunctionAsync, process?: PathWalkerProcessFunction) => Promise; /** * Walk the filesystem up from a path, checking each path against a predicate * @param pathToCheck Path to be checked against predicate * @param predicate Predicate to check path with * @param process Optional function to process path output * @returns Path that matched predicate */ export declare const walkFsSync: (pathToCheck: string, predicate: PathPredicateFunction, process?: PathWalkerProcessFunction) => T | string; export declare const walker: { async: (pathToCheck: string, predicate: PathPredicateFunctionAsync, process?: PathWalkerProcessFunction) => Promise; sync: (pathToCheck: string, predicate: PathPredicateFunction, process?: PathWalkerProcessFunction) => T | string; }; //# sourceMappingURL=walkFs.d.ts.map