/** * List Command — Lists specs, tokens, design system components, or styles. * * Items are sorted by type then name for readability. A summary line at * the bottom reports counts by type (e.g. "3 components, 1 page, 0 dataviz specs"). * * Usage: * memi list List all specs (default) * memi list tokens List design tokens sorted by type * memi list components List design system components * memi list styles List design system styles * memi list --json Emit { ok, elapsed, data } JSON payload */ import type { Command } from "commander"; import type { MemoireEngine } from "../engine/core.js"; export interface ListPayload { type: string; items: Array<{ name: string; type?: string; [key: string]: unknown; }>; count: number; } /** * Register the `memi list [type]` command onto the Commander program. * * Supports listing specs (default), tokens, components, and styles. * Results are sorted by type then name. Specs output includes a summary * count by type at the bottom. * * @param program The root Commander Command instance. * @param engine The initialised MemoireEngine. */ export declare function registerListCommand(program: Command, engine: MemoireEngine): void;