pury
Version:
🛡️ AI-powered security scanner with advanced threat detection, dual reporting system (detailed & summary), and comprehensive code analysis
22 lines • 774 B
TypeScript
import { type FileInfo, type ScanOptions } from '../types/index.js';
export declare class FileScanner {
private readonly patternMatcher;
private readonly maxFileSize;
private readonly followSymlinks;
constructor(include?: string[], exclude?: string[], maxFileSize?: number, // 1MB
followSymlinks?: boolean);
scan(options: ScanOptions): Promise<FileInfo[]>;
private scanDirectory;
private scanSingleFile;
private processFile;
private chunkArray;
addIncludePattern(pattern: string): void;
addExcludePattern(pattern: string): void;
getStats(): {
includePatterns: number;
excludePatterns: number;
maxFileSize: number;
followSymlinks: boolean;
};
}
//# sourceMappingURL=file-scanner.d.ts.map