/** * File Organizer MCP Server v3.4.2 * Path Security Utilities * * Whitelist/blacklist checking for path access control */ export interface PathValidationResult { allowed: boolean; reason?: string; hint?: string; } /** * Check if a path matches any blocked patterns */ export declare function isPathBlocked(normalizedPath: string): boolean; /** * Check if a path is within allowed directories */ export declare function isPathInAllowedDirectories(normalizedPath: string): boolean; /** * Main function to check if a path is allowed * Applies both blacklist and whitelist checks * Uses atomic validation with symlink detection to prevent race conditions */ export declare function isPathAllowed(requestedPath: string): Promise; /** * Get list of all allowed directories (for user info) */ export declare function getAllowedDirectories(): string[]; /** * Format a helpful access denied message with actionable information */ export declare function formatAccessDeniedMessage(requestedPath: string, validation: PathValidationResult): string; //# sourceMappingURL=path-security.d.ts.map