/** * MockDetector Smart Whitelisting System * * Purpose: Eliminate false positives by intelligently filtering out: * - MockDetector's own code * - Legitimate configuration files * - Supabase publishable keys (MUST be in code) * - Database queries and API patterns * - Explicit "no mock data" declarations */ export interface WhitelistConfig { files: RegExp[]; codePatterns: RegExp[]; jsonKeys: string[]; contextKeywords: string[]; } export declare const WHITELIST_PATTERNS: WhitelistConfig; /** * Clear caches (useful for testing or memory management) */ export declare function clearWhitelistCaches(): void; /** * Check if a file should be whitelisted (never scanned) - WITH CACHING */ export declare function isWhitelistedFile(filePath?: string): boolean; /** * Check if a code line contains whitelisted patterns - WITH CACHING */ export declare function isWhitelistedCode(line: string): boolean; /** * Check if text contains MockDetector's own UI keywords */ export declare function isWhitelistedContext(text: string): boolean; /** * Check if JSON contains explicit "no mock data" declarations */ export declare function hasNoMockDataDeclaration(json: any): boolean; /** * Check if JSON is legitimate API response metadata */ export declare function isApiResponseMetadata(json: any): boolean; /** * Check if JSON is configuration data (features, amenities, settings) */ export declare function isConfigurationData(json: any): boolean; /** * Check if file content contains MockDetector pattern DEFINITIONS (not usage) */ export declare function isPatternDefinitionFile(content: string): boolean; /** * Master whitelist check - returns true if content should be SKIPPED */ export declare function shouldSkipScanning(content: string, filePath?: string, additionalContext?: any): boolean;