/** * Capability Matrix — Declares what each command needs to run. * * Every command has required and optional capabilities. When a required * capability is missing, the user gets a clear error with recovery steps. * When an optional capability is missing, the command runs in degraded mode. */ export type Capability = "figma" | "ai" | "specs" | "generated-code" | "research" | "daemon"; export interface CapabilityCheck { ok: boolean; available: Capability[]; missing: Capability[]; messages: string[]; degraded: Capability[]; } /** Check capabilities for a command against the current environment. */ export declare function checkCapabilities(command: string, env: { figma: boolean; ai: boolean; specs: boolean; generatedCode: boolean; research: boolean; daemon: boolean; }): CapabilityCheck; /** Format a capability check result for terminal output. */ export declare function formatCapabilityError(check: CapabilityCheck, command: string): string; /** Get the current environment's capability state. */ export declare function detectCapabilities(engine: { figma: { isConnected: boolean; }; registry: { designSystem: { tokens: { length: number; }; }; getAllSpecs: () => Promise; }; research: { getStore: () => { findings: unknown[]; }; }; }): { figma: boolean; ai: boolean; specs: boolean; generatedCode: boolean; research: boolean; daemon: boolean; };