/** * Configuration loading utilities (v1.1 only). * Handles loading and parsing configuration from files with validation. * Supports automatic migration from v1.0 to v1.1. */ import type { SystemConfig } from './config.schema.js'; /** * Loads configuration from the specified file path. * * This function handles the complete configuration loading process: * - Checks if the config file exists at the specified path * - Reads and parses the JSON configuration * - Detects legacy v1.0 configuration and auto-migrates to v1.1 * - Performs type conversion for compatibility (e.g., 'http' to 'streamable-http') * - Validates the configuration using Zod schema * - Handles validation failures gracefully by falling back to default configuration * * @param configPath - Path to the configuration file * @param autoMigrate - Whether to automatically migrate v1.0 to v1.1 (default: true) * @returns The loaded and validated system configuration (v1.1 format) */ export declare function loadConfig(configPath: string, autoMigrate?: boolean): SystemConfig; //# sourceMappingURL=config-loader.d.ts.map