import { z } from 'zod'; import { McpServer as BaseMcpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; /** * Tool class for defining Puppeteer tools */ export declare class Tool { name: string; schema: T; handler: (params: z.infer) => Promise<{ content: Array<{ type: string; text: string | { src: string; alt: string; }; }>; }>; options: { description: string; }; constructor(name: string, schema: T, handler: (params: z.infer) => Promise<{ content: Array<{ type: string; text: string | { src: string; alt: string; }; }>; }>, options: { description: string; }); definition(): [string, z.ZodTypeAny, (params: any) => Promise, { description: string; }]; } /** * MCP Server for Puppeteer tools */ export declare class PuppeteerMcpServer extends BaseMcpServer { private toolsList; readonly config: any; /** * Create a new Puppeteer MCP server */ constructor(); /** * Add a tool with the given name, schema, handler, and options */ addTool(name: string, schema: T, handler: (params: z.infer) => Promise<{ content: Array<{ type: string; text: string | { src: string; alt: string; }; }>; }>, options: { description: string; }): this; /** * Register multiple tools */ tools(toolsList: Tool[]): void; /** * Start the server with stdio transport */ start(): Promise<{ close: () => void; }>; } //# sourceMappingURL=stdio.d.ts.map