/** * Input sanitization utilities for SQL LIKE queries and path validation */ /** * Sanitize string for use in SQL LIKE patterns * Escapes special LIKE characters: %, _, " */ export declare function sanitizeForLike(input: string): string; /** * Validate and sanitize file path * Cross-platform: prevents path traversal attacks and blocks system directories */ export declare function validateFilePath(filePath: string): string; /** * Validate and normalize project path * Cross-platform: handles both Unix (/) and Windows (\) paths * Used for converting file paths to Claude project directory names */ export declare function sanitizeProjectPath(path: string): string; /** * Sanitize SQL identifier (table/column name) * Only allows alphanumeric and underscore */ export declare function sanitizeSQLIdentifier(identifier: string): string; /** * Escape a table name for use in double-quoted SQL identifiers * Doubles any embedded double-quotes per SQL standard */ export declare function escapeTableName(tableName: string): string; /** * Validate database path for use in ATTACH DATABASE statement * Prevents SQL injection via path manipulation */ export declare function validateDatabasePath(dbPath: string): string; /** * Convert a project path to Claude Code's project folder name * Cross-platform compatible - handles both Unix and Windows paths * * Examples: * - macOS/Linux: /Users/joker/github/project → -Users-joker-github-project * - Windows: C:\Users\user\project → C-Users-user-project * - Windows UNC: \\server\share\project → -server-share-project */ export declare function pathToProjectFolderName(projectPath: string): string; //# sourceMappingURL=sanitization.d.ts.map