interface NextJsServerInfo { port: number; pid: number; command: string; } interface NextJsMCPTool { name: string; description?: string; inputSchema?: Record; } declare const MCP_HOST: string; /** * Probe a port for MCP endpoint, trying both protocols * Returns the successful protocol if found, null otherwise * Also caches the detected protocol */ declare function probePort(port: number, timeoutMs?: number): Promise<"http" | "https" | null>; /** * Detect protocol for a port (for use when making requests) * Returns cached protocol or defaults to http */ declare function detectProtocol(port: number): Promise<"http" | "https">; export declare function listNextJsTools(port: number): Promise; export declare function callNextJsTool(port: number, toolName: string, args: Record): Promise; export declare function getAllAvailableServers(): Promise; export { detectProtocol, probePort, MCP_HOST };