/** * Default directory exclusions for file/directory discovery. */ export declare const DEFAULT_DIR_EXCLUSIONS: Set; /** * Checks if a path is ignored by Git. * Returns true if the path is ignored, false otherwise. * Falls back to false if not in a git repository. */ export declare function isGitIgnored(filePath: string, cwd?: string): boolean; /** * Checks if we're in a git repository. */ export declare function isInGitRepo(dir: string): boolean; export interface WalkDirsOptions { /** * Maximum depth to descend. 0 means only immediate children. * undefined means unlimited. */ maxDepth?: number; /** * Directory names to exclude. Defaults to DEFAULT_DIR_EXCLUSIONS. */ excludeDirs?: Set; /** * Whether to respect .gitignore. Defaults to false. */ respectGitIgnore?: boolean; /** * Only include directories containing a file with this name. * Useful for finding package directories by looking for package.json. */ mustContainFile?: string; } /** * Recursively walks directories starting from a given path. * Returns all subdirectory paths (not including the root). */ export declare function walkDirs(rootDir: string, options?: WalkDirsOptions): Promise; /** * Gets files tracked by git (and untracked but not ignored files). * Falls back to empty array if not in a git repository. */ export declare function getGitTrackedFiles(dir: string): string[]; //# sourceMappingURL=path-utils.d.ts.map