/** * Mask sensitive data for logging * @param {string} value - The sensitive value to mask * @param {number} visibleChars - Number of characters to show at the end (default: 4) * @returns {string} - Masked value */ export function maskSensitiveData(value: string, visibleChars?: number): string; /** * Generate a cryptographically secure random string * @param {number} length - Length of the string to generate * @returns {string} - Random hex string */ export function generateSecureKey(length?: number): string; /** * Validate that a string is a valid UUID * @param {string} uuid - UUID to validate * @returns {boolean} - True if valid UUID */ export function isValidUUID(uuid: string): boolean; /** * Sanitize input to prevent injection attacks * @param {string} input - Input to sanitize * @param {object} options - Sanitization options * @returns {string} - Sanitized input */ export function sanitizeInput(input: string, options?: object): string; /** * Check if an environment variable contains sensitive data patterns * @param {string} key - Environment variable key * @param {string} value - Environment variable value * @returns {boolean} - True if potentially sensitive */ export function isSensitiveEnvVar(key: string, value: string): boolean; /** * Secure comparison of strings to prevent timing attacks * @param {string} a - First string * @param {string} b - Second string * @returns {boolean} - True if strings match */ export function secureCompare(a: string, b: string): boolean; /** * Rate limiting helper */ export class RateLimiter { constructor(maxRequests?: number, windowMs?: number); maxRequests: number; windowMs: number; requests: Map; isAllowed(identifier: any): boolean; cleanup(): void; } declare namespace _default { export { maskSensitiveData }; export { generateSecureKey }; export { isValidUUID }; export { sanitizeInput }; export { isSensitiveEnvVar }; export { secureCompare }; export { RateLimiter }; } export default _default;