/**
 * Utility for making request-response calls through the gateway.
 *
 * Some handlers (e.g., machines_list) need to forward a request to the gateway
 * and wait for the corresponding response.  This module provides a simple
 * promise-based mechanism backed by a one-time message listener.
 */
import type { Message } from "@pocketcoder/shared";
import type { GatewayClient } from "./websocket-client.js";
/**
 * Send a request message through the gateway and wait for a response whose
 * `type` matches `expectedResponseType` and `requestId` matches.
 *
 * Rejects if no response arrives within `timeoutMs` (default 15 s).
 */
export declare function gatewayRequest(client: GatewayClient, request: Message, expectedResponseType: string, timeoutMs?: number): Promise<Message>;
//# sourceMappingURL=gateway-request.d.ts.map