/** * * The CLI layer never speaks HTTP itself: this class is the only thing it * knows how to talk to, so every transport concern (bearer token, timeouts, * envelope normalisation) lives here and every CLI test can stub the daemon * with a plain `node:http` server. */ import type { WebDaemonInfo, WebOp, WebOpResponse } from './web-protocol.js'; export declare class WebDaemonClient { private readonly baseUrl; private readonly token; constructor(info: WebDaemonInfo); /** True when a daemon is listening on the recorded port and accepting our token. */ health(): Promise; /** Invoke one op. A transport failure throws; an op failure comes back as `ok: false`. */ call(op: WebOp, args: Readonly>, timeoutMs: number): Promise>; private headers; }