import type { ClientResult, HttpMethod } from "./types/api.js"; interface RequestOptions { method?: HttpMethod; body?: Record; query?: Record; toolName?: string; skipOrgInjection?: boolean; /** * Extra request headers, merged over the defaults. Only for contracts the * backend reads from a header rather than the body - `Idempotency-Key` on * `POST billing/topup`, which is real money and must not double-charge on a * blind retry. */ headers?: Record; /** * `"text"` for the few endpoints that answer a file rather than the JSON envelope: an invoice's * CSV and the BYOC CloudFormation template (YAML). A 2xx body comes back as the string in * `data`; an error still goes through the JSON envelope when the backend sent one. */ responseType?: "json" | "text"; } export declare function apiRequest(path: string, options?: RequestOptions): Promise>; export {};