/** * Security utilities for the Firebase chat library */ /** * Validates user input to prevent XSS and injection attacks */ export declare const sanitizeUserInput: (input: string) => string; /** * Validates file paths to prevent directory traversal */ export declare const validateFilePath: (filePath: string) => boolean; /** * Validates encryption key strength */ export declare const validateEncryptionKey: (key: string) => { isValid: boolean; errors: string[]; }; /** * Validates message content */ export declare const validateMessage: (message: string) => { isValid: boolean; errors: string[]; }; /** * Validates user ID format */ export declare const validateUserId: (userId: string) => boolean; /** * Rate limiting helper */ export declare class RateLimiter { private attempts; private readonly maxAttempts; private readonly windowMs; constructor(maxAttempts?: number, windowMs?: number); isAllowed(identifier: string): boolean; reset(identifier: string): void; } //# sourceMappingURL=security.d.ts.map