/** * Interactive configuration wizard for audio-tools. * * Provides user-friendly prompts for configuring backup sources, export settings, * and discovering/importing existing backups. Uses inquirer for interactive CLI prompts. * * @module audiotools-config/wizard */ import type { AudioToolsConfig, BackupSource, DiscoveredBackup } from './types.js'; /** * Import existing backups wizard. * * Presents discovered backups to the user and allows them to selectively * import them as configured backup sources. * * @param discovered - Array of discovered backups * @returns Array of BackupSource configurations to add * * @example * ```typescript * const discovered = await discoverExistingBackups(); * if (discovered.length > 0) { * const sources = await importBackupsWizard(discovered); * // Add sources to config * } * ``` */ export declare function importBackupsWizard(discovered: DiscoveredBackup[]): Promise; /** * Add backup source wizard. * * Guides the user through creating a new backup source configuration. * * @param config - Current configuration * @returns New BackupSource configuration * * @example * ```typescript * const config = await loadConfig(); * const newSource = await addBackupSourceWizard(config); * const updated = addBackupSource(config, newSource); * await saveConfig(updated); * ``` */ export declare function addBackupSourceWizard(config: AudioToolsConfig): Promise; /** * Edit backup source wizard. * * Allows editing of an existing backup source configuration. * * @param config - Current configuration * @returns Promise that resolves when editing is complete * * @example * ```typescript * let config = await loadConfig(); * await editBackupSourceWizard(config); * // Config is updated by the wizard * ``` */ export declare function editBackupSourceWizard(config: AudioToolsConfig): Promise; /** * Remove backup source wizard. * * Allows removal of an existing backup source configuration. * * @param config - Current configuration * @returns Promise that resolves when removal is complete * * @example * ```typescript * let config = await loadConfig(); * await removeBackupSourceWizard(config); * // Config is updated by the wizard * ``` */ export declare function removeBackupSourceWizard(config: AudioToolsConfig): Promise; /** * Edit export configuration wizard. * * Allows editing of export settings (formats, output directory, etc.). * * @param config - Current configuration * @returns Promise that resolves when editing is complete * * @example * ```typescript * let config = await loadConfig(); * await editExportConfigWizard(config); * // Config is updated by the wizard * ``` */ export declare function editExportConfigWizard(config: AudioToolsConfig): Promise; /** * Main menu for configuration management. * * Provides a menu-driven interface for all configuration operations. * Loops until the user chooses to exit. * * @param config - Current configuration * @returns Promise that resolves when user exits * * @example * ```typescript * const config = await loadConfig(); * await mainMenu(config); * ``` */ export declare function mainMenu(config: AudioToolsConfig): Promise; /** * Main configuration wizard entry point. * * Coordinates the entire configuration workflow: * 1. Loads existing config or starts fresh * 2. Discovers existing backups (if no config) * 3. Offers to import discovered backups * 4. Runs initial setup or main menu * 5. Saves configuration * * @param configPath - Optional custom config file path * @returns Promise that resolves when wizard is complete * * @example * ```typescript * // Run with default config path * await runConfigWizard(); * * // Run with custom path * await runConfigWizard('/custom/path/config.json'); * ``` */ export declare function runConfigWizard(configPath?: string): Promise;