import type { RpcResponse } from './types'; /** * Default per-request timeout shared between the orchestration layer * (`call_editor` in editor-client.ts) and the wire layer (`request_editor_at_port`). * When a caller leaves the timeout at the default we omit the `_timeout` hint; * any non-default value is forwarded so the server can honor it. */ export declare const DEFAULT_EDITOR_REQUEST_TIMEOUT_MS = 10000; export interface EditorPortRequestOptions { port: number; method: string; params?: Record; timeout: number; no_wait?: boolean; } export interface EditorPingResult { reachable: boolean; error?: string; } /** * Send a JSON-RPC request directly to a known editor bridge port. */ export declare function request_editor_at_port(options: EditorPortRequestOptions): Promise; /** * Quick connectivity check: attempts a WebSocket handshake and immediately closes. * Returns whether the bridge is reachable within the timeout. */ export declare function ping_editor(port: number, timeout_ms?: number): Promise; export declare function generate_editor_request_id(): string; //# sourceMappingURL=editor-transport.d.ts.map