import ignore from 'ignore'; export declare const GITIGNORE_FILENAME = ".gitignore"; export declare const ALWAYS_IGNORED_DIRS: Set; export interface GitignoreMatcher { /** Directory the `.gitignore` governs: '' for the root, or e.g. 'sub/'. */ dir: string; filter: ReturnType; } export declare function isGitignored(name: string, matchers: GitignoreMatcher[]): boolean; /** Walk a directory tree; returns kept files as posix paths relative to the root, plus the count * of ignored entries. */ export declare function walkWithGitignore(root: string): Promise<{ kept: string[]; ignored: number; }>; /** The nearest ancestor (including start) holding a package.json — the project root. */ export declare function findInstallRoot(cwd?: string): Promise; //# sourceMappingURL=project-walk.d.ts.map