Rocky_Mountain_Vending/.pnpm-store/v10/files/b4/fdba03ebdf600995a3682753c8d3aaa9f357759c6567399be6850bccd9925e8e4097bcd5084ca9bddb84a761092687ad72ce33e969a5793c87697e11a40b48
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

13 lines
798 B
Text

/**
* Shared utilities for MCP tools that communicate with the browser.
* This module provides a common infrastructure for request-response
* communication between MCP endpoints and browser sessions via HMR.
*/
import type { HMR_MESSAGE_SENT_TO_BROWSER, HmrMessageSentToBrowser } from '../../../dev/hot-reloader-types';
export declare const DEFAULT_BROWSER_REQUEST_TIMEOUT_MS = 5000;
export type BrowserResponse<T> = {
url: string;
data: T;
};
export declare function createBrowserRequest<T>(messageType: HMR_MESSAGE_SENT_TO_BROWSER, sendHmrMessage: (message: HmrMessageSentToBrowser) => void, getActiveConnectionCount: () => number, timeoutMs: number): Promise<BrowserResponse<T>[]>;
export declare function handleBrowserPageResponse<T>(requestId: string, data: T, url: string): void;