visilog
Version:
Stream browser console logs to files for LLM debugging. Zero-config setup with simple imports. No MCP required - just tell your LLM to read the log files.
53 lines • 1.68 kB
TypeScript
import type { LoggerConfig, ValidationResult } from '../types';
/**
* Configuration validation system with auto-fix capabilities
* Exceeds feedback expectations with intelligent suggestions and schema validation
*/
export declare class ConfigValidator {
private static readonly VALIDATION_RULES;
private static readonly DEFAULT_CONFIG;
/**
* Validates configuration with intelligent error messages and suggestions
*/
static validate(config: Partial<LoggerConfig>): ValidationResult;
/**
* Validates a single field with detailed error context
*/
private static validateField;
/**
* Validates field types with intelligent conversion suggestions
*/
private static validateType;
/**
* Validates cross-field dependencies and logical consistency
*/
private static validateCrossFields;
/**
* Applies intelligent fixes based on common patterns and best practices
*/
private static applyIntelligentFixes;
/**
* Gets default value for a field
*/
private static getDefaultValue;
/**
* Gets pattern suggestion for URL fields
*/
private static getPatternSuggestion;
/**
* Gets default value for pattern fields
*/
private static getPatternDefault;
/**
* Creates a configuration with all defaults applied
*/
static withDefaults(config?: Partial<LoggerConfig>): LoggerConfig;
/**
* Validates and returns a safe configuration
*/
static validateAndFix(config: Partial<LoggerConfig>): {
config: LoggerConfig;
validation: ValidationResult;
};
}
//# sourceMappingURL=config-validator.d.ts.map