UNPKG

figma-to-react-mcp

Version:

Convert Figma designs to React components automatically. MCP server with GitHub, Figma, and Playwright integrations for seamless design-to-code workflow.

24 lines 1.01 kB
import { PlaywrightConfig, ToolResult } from "../types/index.js"; export declare class PlaywrightIntegration { private config; private browserPool; private logger; private readonly maxContexts; private initializationPromise; constructor(config: PlaywrightConfig); initialize(): Promise<void>; private createBrowserPool; private getContext; private releaseContext; captureScreenshot(url: string, selector?: string, outputPath?: string): Promise<ToolResult>; compareScreenshots(baseImagePath: string, currentImagePath: string, threshold?: number): Promise<ToolResult>; runVisualTest(testName: string, url: string, selector?: string, baselineDir?: string): Promise<ToolResult>; testResponsiveDesign(url: string, viewports: Array<{ width: number; height: number; name: string; }>): Promise<ToolResult>; validateAccessibility(url: string): Promise<ToolResult>; close(): Promise<void>; } //# sourceMappingURL=playwright.d.ts.map