/** * MCP tool helper that calls the WhatsApp Hono routes on localhost and * surfaces structured error bodies on non-2xx responses. * * Why this exists separate from `index.ts`: the previous inline helper at * `index.ts:36-38` discarded the response body on every non-2xx, returning * only `HTTP : `. The Hono route emits validation * details (e.g. `{ ok: false, error: "Unrecognized keys: mode, agent" }`) * that the agent needs to self-correct. Without surfacing them, every * 400 looks identical and the agent retries blindly until max-turns * (root cause). */ export declare function callApi(baseUrl: string, path: string, method?: "GET" | "POST", body?: unknown, extraHeaders?: Record): Promise; //# sourceMappingURL=call-api.d.ts.map