/** * Interface representing the configuration for file discovery */ export interface ProjectConfig { rootDir: string; include?: string[]; exclude?: string[]; } /** * Interface representing discovered files categorized by type */ export interface FileList { routes: string[]; api: string[]; components: string[]; utilities: string[]; config?: string[]; } /** * FileDiscovery class handles directory scanning and file categorization * for Next.js projects */ export declare class FileDiscovery { /** * Discovers files in the project and categorizes them by type * @param rootDir - Root directory of the project * @param config - Project configuration with include/exclude patterns * @returns Promise - Categorized list of discovered files * @throws InvalidProjectRootError if the project root doesn't exist */ discover(rootDir: string, config: ProjectConfig): Promise; /** * Filters files based on inclusion patterns * @param files - Array of file paths to filter * @param patterns - Array of glob patterns to match * @returns string[] - Filtered file paths */ filter(files: string[], patterns: string[]): string[]; /** * Categorizes a file based on its path and location * @param filePath - Relative file path * @param baseDir - Base directory where file was found * @returns Category name or null if not categorized */ private categorizeFile; /** * Converts a glob pattern to a regular expression * @param pattern - Glob pattern string * @returns RegExp - Regular expression for matching */ private globToRegex; } //# sourceMappingURL=FileDiscovery.d.ts.map