/** * `memi update [registry]` — reinstall every component we previously * installed from a registry, pulling the latest versions. * * Matches installed components by reading specs in `.memoire/specs/components/` * that originated from a registry install (inferred by spec matching a remote * registry's component set). * * Examples: * memi update @acme/design-system # update only components from this registry * memi update # update all registry-sourced components (reads --from from package.json or prompts) */ import type { Command } from "commander"; import type { MemoireEngine } from "../engine/core.js"; export interface UpdatePayload { status: "updated" | "failed" | "empty"; registry: string; version: string; updated: string[]; skipped: string[]; errors: Array<{ component: string; error: string; }>; elapsedMs: number; } export declare function registerUpdateCommand(program: Command, engine: MemoireEngine): void;