/**
 * Settings Migration
 *
 * Handles migration from old settings format to the new connection profiles system.
 */
import { ConnectionConfig, ConnectionProfile, LegacyUserSettings, ModernUserSettings, ProviderType } from './types.js';
/**
 * Detect provider type from various hints
 */
export declare function detectProviderFromSettings(settings: LegacyUserSettings): ProviderType;
/**
 * Create a profile from legacy settings
 */
export declare function createProfileFromLegacy(settings: LegacyUserSettings, name?: string): ConnectionProfile;
/**
 * Check if settings need migration
 */
export declare function needsMigration(settings: unknown): boolean;
/**
 * Migrate legacy settings to modern format with connection profiles
 */
export declare function migrateSettings(oldSettings: LegacyUserSettings): ModernUserSettings;
/**
 * Merge default profiles with user profiles
 */
export declare function mergeWithDefaults(userConfig: Partial<ConnectionConfig>): ConnectionConfig;
/**
 * Validate and fix connection config
 */
export declare function validateConnectionConfig(config: ConnectionConfig): ConnectionConfig;
/**
 * Clone a profile with a new ID
 */
export declare function cloneProfile(profile: ConnectionProfile, newId: string, newName?: string): ConnectionProfile;
/**
 * Create a custom profile
 */
export declare function createCustomProfile(id: string, name: string, baseURL: string, apiKey?: string, options?: Partial<ConnectionProfile>): ConnectionProfile;
/**
 * Export profiles to JSON for backup
 */
export declare function exportProfiles(profiles: ConnectionProfile[]): string;
/**
 * Import profiles from JSON
 */
export declare function importProfiles(json: string): ConnectionProfile[];
