/** * File filtering based on .gitignore and .mcpignore patterns */ /** * Simple gitignore-style pattern matcher */ export declare class FileFilter { private basePath; private patterns; private negatePatterns; private directoryPatterns; constructor(basePath: string); /** * Load patterns from .gitignore file */ loadGitignore(): Promise; /** * Load patterns from .mcpignore file */ loadMcpignore(): Promise; /** * Load patterns from a file */ loadPatterns(filePath: string): Promise; /** * Add a pattern manually */ addPattern(pattern: string): void; /** * Add multiple patterns */ addPatterns(patterns: string[]): void; /** * Check if a file should be ignored */ shouldIgnore(filePath: string): boolean; /** * Check if path matches any ignore pattern */ private matchesAnyPattern; /** * Check if path is explicitly negated (included) */ private isNegated; /** * Match a path against a gitignore-style pattern */ private matchPattern; /** * Convert gitignore pattern to regex */ private patternToRegex; /** * Clear all patterns */ clear(): void; /** * Get number of loaded patterns */ getPatternCount(): number; } /** * Create and initialize a file filter */ export declare function createFileFilter(basePath: string, options?: { respectGitignore?: boolean; useMcpignore?: boolean; additionalPatterns?: string[]; }): Promise; //# sourceMappingURL=file-filter.d.ts.map