#!/usr/bin/env node
/**
 * SpecWeave Update Command
 *
 * Unified update command for keeping SpecWeave up-to-date.
 * This is the recommended command for users to run when updating.
 *
 * What it does (by default):
 * 1. Self-updates SpecWeave CLI via npm (npm i -g specweave@latest)
 * 2. Migrates config.json (adds missing sections like 'auto')
 * 3. Updates instruction files (CLAUDE.md, AGENTS.md)
 * 4. Validates project health
 * 5. Refreshes ALL marketplace plugins (DEFAULT - keeps all skills up to date)
 *
 * Usage:
 *   specweave update                  # Full update: CLI + instructions + config + plugins
 *   specweave update --no-plugins     # Skip marketplace plugins refresh
 *   specweave update --all            # Install ALL plugins (default, kept for compat)
 *   specweave update --minimal        # Clean /plugin output (removes marketplace)
 *   specweave update --no-self        # Skip CLI update, only project files
 *   specweave update --check          # Dry run - show what would change
 *
 * @since 1.0.131
 * @updated 1.0.138 - Plugins refresh is now DEFAULT (use --no-plugins to skip)
 */
interface UpdateOptions {
    /** Skip marketplace plugins refresh (default: false - plugins ARE refreshed) */
    noPlugins?: boolean;
    /** Install all plugins (default: true). Kept for backward compat — update always refreshes all plugins. */
    all?: boolean;
    /** Minimal mode: remove marketplace for clean /plugin output */
    minimal?: boolean;
    /** Dry run - show what would change */
    check?: boolean;
    /** Verbose output */
    verbose?: boolean;
    /** Force refresh even if up to date */
    force?: boolean;
    /** Skip self-update of specweave CLI (--no-self sets self=false via Commander) */
    noSelf?: boolean;
    /** Commander maps --no-self to self=false */
    self?: boolean;
}
/**
 * Main update command
 */
export declare function updateCommand(options?: UpdateOptions): Promise<void>;
/**
 * Migrate config.json to add Deep Interview section if missing (v1.0.195+)
 * Projects initialized before v1.0.195 may not have the planning.deepInterview section
 * This enables all clients to use deep interview for spec design after running update
 *
 * @param projectPath - Path to the project root
 * @param verbose - Show detailed output
 * @returns true if migration was performed
 */
export declare function migrateDeepInterviewConfig(projectPath: string, verbose?: boolean): boolean;
/**
 * Register command with Commander
 */
export declare function registerUpdateCommand(program: import('commander').Command): void;
export {};
//# sourceMappingURL=update.d.ts.map