import { ValidationSchema, SecurityEvent } from './types.js'; /** * Input validation and sanitization service for miura Framework * Handles XSS prevention, input sanitization, and output encoding */ export declare class ValidationService { private static instance; private eventListeners; private constructor(); static getInstance(): ValidationService; /** * Validate input against schema */ validate(data: any, schema: ValidationSchema): { valid: boolean; errors: Record; }; /** * Sanitize input to prevent XSS */ sanitizeInput(input: string): string; /** * Encode output to prevent XSS */ encodeOutput(input: string): string; /** * Validate email format */ validateEmail(email: string): boolean; /** * Validate URL format */ validateURL(url: string): boolean; /** * Validate phone number */ validatePhone(phone: string): boolean; /** * Validate password strength */ validatePassword(password: string): { valid: boolean; score: number; feedback: string[]; }; /** * Check for SQL injection patterns */ detectSQLInjection(input: string): boolean; /** * Check for XSS patterns */ detectXSS(input: string): boolean; /** * Add event listener */ on(event: string, callback: (event: SecurityEvent) => void): void; /** * Remove event listener */ off(event: string, callback: (event: SecurityEvent) => void): void; private validateRule; private sanitizeForLogging; private emitSecurityEvent; } export declare const validation: ValidationService; //# sourceMappingURL=validation.d.ts.map