/** * Options for finding files */ interface FindFilesOptions { /** Include patterns for files to find */ include?: string[]; /** Exclude patterns for files to skip */ exclude?: string[]; /** Specific files to include (overrides include/exclude) */ files?: string[]; } /** * Recursively finds all files in the given directory matching the include patterns, * while excluding files and directories that match the exclude patterns. * @param rootDir The root directory to start searching from. * @param opts Options for include, exclude patterns and files override. * @returns A promise that resolves to an array of file paths. */ export declare function findFiles(rootDir: string, opts: FindFilesOptions): Promise; /** * Expands brace sets in a glob pattern. * @param pattern - The glob pattern to expand. * @returns An array of expanded glob patterns. */ export declare function expandBraceSets(pattern: string): string[]; /** * Gets the base directory for a glob pattern. * @param rootDir The root directory to resolve against. * @param pattern The glob pattern to analyze. * @returns The base directory for the pattern, or null if not found. */ export declare function getPatternBaseDir(rootDir: string, pattern: string): string | null; /** * Find files using the --files patterns (complete replacement mode) * @param rootDir The root directory to search within. * @param patterns The glob patterns to match files against. * @returns A promise that resolves to an array of matching file paths. */ export declare function findFilesByPatterns(rootDir: string, patterns: string[]): Promise; /** * Generate default patterns from extensions * @returns An array of default glob patterns. */ export declare function getDefaultPatterns(): string[]; /** * Check if a file should be included based on its name, path, and include patterns. * @param fileName The name of the file. * @param relativePath The relative path of the file. * @param patterns The include patterns to match against. * @returns True if the file should be included, false otherwise. */ export declare function shouldInclude(fileName: string, relativePath: string, patterns: string[]): boolean; /** * Checks if a file should be excluded based on its name, path, and exclude patterns. * @param fileName The name of the file. * @param relativePath The relative path of the file. * @param patterns The exclude patterns to match against. * @returns True if the file should be excluded, false otherwise. */ export declare function shouldExclude(fileName: string, relativePath: string, patterns: string[]): boolean; /** * Checks if a file path matches a glob pattern. * A glob pattern is a string that may contain special characters like '*', '**', and '?' to represent wildcards and variable parts of the path. * @param filePath The path of the file to check. * @param pattern The glob pattern to match against. * @returns True if the file path matches the pattern, false otherwise. */ export declare function matchesGlobPattern(filePath: string, pattern: string): boolean; export {}; //# sourceMappingURL=fileWalker.d.ts.map