/** * Whitelist Service * Manages whitelisted dependencies and classes for SOLID analyzer */ import { WhitelistEntry, WhitelistType, WhitelistStatus, WhitelistSuggestion } from '../types/whitelist.js'; export declare class WhitelistService { private static instance; private constructor(); static getInstance(): WhitelistService; /** * Get whitelist entries by type and status */ getWhitelist(type?: WhitelistType, status?: WhitelistStatus): Promise; /** * Add a new whitelist entry */ addEntry(name: string, type: WhitelistType, description?: string, patterns?: string[]): Promise; /** * Update the status of a whitelist entry */ updateStatus(name: string, status: WhitelistStatus): Promise; /** * Check if a name is whitelisted */ isWhitelisted(name: string, type: WhitelistType): Promise; /** * Detect whitelist candidates from package.json */ detectFromPackageJson(projectPath: string): Promise; /** * Detect whitelist candidates from usage patterns */ detectFromUsagePatterns(projectPath: string): Promise; /** * Auto-populate whitelist for a project */ autoPopulateWhitelist(projectPath: string): Promise<{ added: number; suggestions: WhitelistSuggestion[]; }>; /** * Whitelist ALL dependencies from package.json */ whitelistAllDependencies(projectPath: string): Promise<{ added: number; failed: string[]; }>; /** * Check if a dependency is a known framework library */ private isFrameworkLibrary; /** * Check if a dependency is a common shared/utility library */ private isSharedLibrary; } export declare const whitelistService: WhitelistService; export declare function getWhitelist(type?: WhitelistType, status?: WhitelistStatus): Promise; export declare function addWhitelistEntry(name: string, type: WhitelistType, description?: string, patterns?: string[]): Promise; export declare function updateWhitelistStatus(name: string, status: WhitelistStatus): Promise; export declare function detectWhitelistCandidates(projectPath: string): Promise; export declare function autoPopulateWhitelist(projectPath: string): Promise<{ added: number; suggestions: WhitelistSuggestion[]; }>; //# sourceMappingURL=whitelistService.d.ts.map