/** * Figma-to-component workflow orchestrator tool. * * Parses Figma URLs, loads workflow instructions, and returns step-by-step guidance * for converting Figma designs to Storefront Next components. * * @module tools/storefrontnext/figma/figma-to-component */ import { z } from 'zod'; import type { McpTool } from '../../../../utils/index.js'; import type { Services } from '../../../../services.js'; export declare const figmaToComponentSchema: z.ZodObject<{ figmaUrl: z.ZodString; workflowFilePath: z.ZodOptional; }, "strict", z.ZodTypeAny, { figmaUrl: string; workflowFilePath?: string | undefined; }, { figmaUrl: string; workflowFilePath?: string | undefined; }>; export type FigmaToComponentInput = z.infer; export interface WorkflowConfig { /** YAML frontmatter key-value pairs. Parsed for future use (e.g., taskType-specific behavior). */ metadata: Record; content: string; } /** * Generates the workflow guide for Figma-to-component conversion. * * @param figmaUrl - Figma design URL with node-id query parameter * @param workflowFilePath - Optional absolute path to custom workflow .md file; uses built-in default if omitted * @returns Formatted workflow guide string with Figma parameters and step-by-step instructions, or error message if URL or workflow file is invalid */ export declare function generateWorkflowResponse(figmaUrl: string, workflowFilePath?: string): string; /** * Creates the sfnext_start_figma_workflow MCP tool. * * @param loadServices - Function that loads configuration and returns Services instance * @returns MCP tool for workflow orchestration */ export declare function createFigmaToComponentTool(loadServices: () => Promise | Services): McpTool;