/**
 * Comprehensive Input Validation and Sanitization System
 * Prevents errors through strict input validation and safe defaults
 */
export interface ValidationRule<T = any> {
    validate: (value: T) => boolean;
    message: string;
    severity: 'error' | 'warning';
    sanitize?: (value: T) => T;
}
export interface ValidationSchema {
    [key: string]: {
        type: 'string' | 'number' | 'boolean' | 'array' | 'object' | 'function' | 'buffer';
        required?: boolean;
        rules?: ValidationRule[];
        default?: any;
        min?: number;
        max?: number;
        pattern?: RegExp;
        enum?: any[];
        nested?: ValidationSchema;
    };
}
export interface ValidationResult {
    isValid: boolean;
    errors: ValidationError[];
    warnings: ValidationError[];
    sanitizedValue: any;
}
export interface ValidationError {
    field: string;
    message: string;
    severity: 'error' | 'warning';
    value: any;
    expectedType?: string;
}
export declare class InputValidator {
    private static readonly FILE_SIZE_LIMITS;
    private static readonly SECURITY_PATTERNS;
    /**
     * Validate and sanitize file path
     */
    static validateFilePath(filePath: string): Promise<ValidationResult>;
    /**
     * Validate worker pool configuration
     */
    static validateWorkerPoolConfig(config: any): ValidationResult;
    /**
     * Validate streaming configuration
     */
    static validateStreamingConfig(config: any): ValidationResult;
    /**
     * Validate buffer data
     */
    static validateBuffer(buffer: any, maxSize?: number): ValidationResult;
    /**
     * Validate and sanitize CSV parsing options
     */
    static validateCSVOptions(options: any): ValidationResult;
    /**
     * Validate numeric array data
     */
    static validateNumericArray(data: any, fieldName?: string): ValidationResult;
    /**
     * Generic object validation against schema
     */
    static validateObject(obj: any, schema: ValidationSchema, objectName?: string): ValidationResult;
    /**
     * Type validation helper
     */
    private static validateType;
    /**
     * Security sanitization for string inputs
     */
    static sanitizeString(input: string): string;
    /**
     * Validate and throw on validation errors
     */
    static validateAndThrow(result: ValidationResult, operation: string): any;
}
//# sourceMappingURL=input-validator.d.ts.map