/** * @packageDocumentation * AI Ignore utility functions for handling .aiignore files. * Provides functionality similar to .gitignore for filtering files. */ /** * Load .aiignore patterns from file * @param rootDir - The root directory to look for .aiignore file * @returns Array of ignore patterns */ export declare function loadAiignorePatterns(rootDir: string): string[]; /** * Check if a file path should be ignored based on aiignore patterns * * Matching follows `.gitignore` rules — a bare pattern applies at every depth, a pattern with a * separator is anchored to `rootDir`, and either kind hides the subtree beneath whatever it * matches. The module-private `expandPattern` above implements that mapping and documents the two * deliberate departures from `.gitignore`. * * @param filePath - The file path to check * @param rootDir - The root directory for relative pattern matching * @param customPatterns - Optional custom patterns to use instead of loading from file * @param enabled - Whether aiignore is enabled * @returns True if the file should be ignored, false otherwise */ export declare function shouldIgnoreFile(filePath: string, rootDir: string, customPatterns?: string[] | undefined, enabled?: boolean): boolean; /** * Filter an array of file paths based on aiignore patterns * @param filePaths - Array of file paths to filter * @param rootDir - The root directory for relative pattern matching * @param customPatterns - Optional custom patterns to use instead of loading from file * @param enabled - Whether aiignore is enabled * @returns Filtered array of file paths that should not be ignored */ export declare function filterIgnoredFiles(filePaths: string[], rootDir: string, customPatterns?: string[] | undefined, enabled?: boolean): string[];