/** * @fileoverview PHP vulnerability scanner - static analysis for PHP security vulnerabilities * @module @nahisaho/musubix-security/analysis/php-scanner * @trace REQ-SEC-PHP-001 */ import type { Vulnerability, ScanOptions, ScanResult, Severity, OWASPCategory } from '../types/index.js'; /** * Reset PHP vulnerability counter (for testing) */ export declare function resetPhpVulnCounter(): void; /** * PHP vulnerability pattern */ interface PhpPattern { ruleId: string; pattern: RegExp; type: string; severity: Severity; cwes: string[]; owasp: OWASPCategory[]; description: string; recommendation: string; confidence: number; } /** * PHP vulnerability scanner */ export declare class PhpScanner { private patterns; constructor(); /** * Scan a single PHP file */ scanFile(filePath: string): Promise; /** * Scan PHP content */ scanContent(content: string, filePath?: string): Vulnerability[]; /** * Scan a directory for PHP files */ scanDirectory(rootPath: string, options?: ScanOptions): Promise; /** * Add custom pattern */ addPattern(pattern: PhpPattern): void; /** * Get rule IDs */ getRuleIds(): string[]; /** * Get rule count */ getRuleCount(): number; } /** * Create PHP scanner */ export declare function createPhpScanner(): PhpScanner; export {}; //# sourceMappingURL=php-scanner.d.ts.map