UNPKG

ailock

Version:

AI-Proof File Guard - Protect sensitive files from accidental AI modifications

22 lines 712 B
/** * Error message sanitization to prevent information disclosure */ export declare class ErrorSanitizer { private readonly sensitivePatterns; private readonly replacements; /** * Sanitize error message to remove sensitive information */ sanitizeMessage(message: string): string; /** * Sanitize context object by removing sensitive keys and values */ sanitizeContext(context: Record<string, any>, maxSize?: number): Record<string, any>; /** * Check if a message contains sensitive patterns */ containsSensitiveData(message: string): boolean; private sanitizeValue; private limitMessageLength; } //# sourceMappingURL=ErrorSanitizer.d.ts.map