/** * `memi add --from ` — install a component from * a Memoire registry (the shadcn pattern, for design systems). * * Examples: * memi add Button --from @acme/design-system * memi add Card --from github:acme/ds * memi add Badge --from ./path/to/registry */ import type { Command } from "commander"; import type { MemoireEngine } from "../engine/core.js"; export interface AddPayload { status: "installed" | "failed" | "listed"; component?: string; from: string; specPath?: string; tokensPath?: string; generated: string[]; available?: string[]; suggestions?: string[]; usageSnippet?: string; tokenInstallCommand?: string; packageUrl?: string; sourceUrl?: string; elapsedMs: number; error?: string; } export declare function registerAddCommand(program: Command, engine: MemoireEngine): void; export declare function buildMarketplaceAddHints(from: string, component: string, tokensAlreadyRequested: boolean): Promise>; export declare function buildUsageSnippet(component: string): string; export declare function suggestRegistryComponents(from: string, requested: string): Promise; export declare function rankComponentSuggestions(available: string[], requested: string): string[];