/** * Configuration validation for recursive-llm-ts. * * Validates RLMConfig at construction time with clear error messages. */ import { RLMConfig } from './bridge-interface'; import { CacheConfig } from './cache'; import { RetryConfig, FallbackConfig } from './retry'; export interface RLMExtendedConfig extends RLMConfig { /** Cache configuration */ cache?: CacheConfig; /** Retry configuration */ retry?: RetryConfig; /** Fallback model configuration */ fallback?: FallbackConfig; /** LiteLLM passthrough parameters */ litellm_params?: Record; } export type ValidationLevel = 'error' | 'warning' | 'info'; export interface ValidationIssue { level: ValidationLevel; field: string; message: string; } export interface ValidationResult { valid: boolean; issues: ValidationIssue[]; } /** * Validate an RLM configuration. * Returns issues rather than throwing, allowing callers to handle gracefully. */ export declare function validateConfig(config: RLMExtendedConfig): ValidationResult; /** * Validate config and throw on errors. Logs warnings. */ export declare function assertValidConfig(config: RLMExtendedConfig): void;