import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { Browser, Page } from 'playwright'; /** * Register screenshot resource to MCP server * @param server MCP server instance * @param browserRef Browser reference * @param pageRef Page reference * @param viteDevServerUrlRef Development server URL reference */ export declare function registerScreenshotResource(server: McpServer, browserRef: { current: Browser | null; }, pageRef: { current: Page | null; }): { addScreenshot: (imageData: string | Buffer, description: string, checkpointId?: string | null, url?: string, browserContext?: { browser_id?: string; browser_type?: string; session_id?: string; }) => Promise<{ id: string; resourceUri: string; }>; getScreenshotByPath: (url: string) => { id: string; timestamp: string; mimeType: string; filePath: string; description: string; checkpointId: string | null; url: string; } | undefined; getScreenshotUriFromPath: (url: string) => string | null; };