import type { McpContext } from "./context.js"; export declare function buildQuery(params: Record): string; /** Call a versioned route under `` (i.e. `…/mail/v1/`). */ export declare function apiFetch(ctx: McpContext, path: string, options?: RequestInit): Promise; /** * Call a route that lives OUTSIDE the versioned `/v1` namespace. * * Several MisarMail API groups (automations, domains, forms, marketplace, * integrations, inbox) are served at `api.misar.io/mail/` — NOT under * `/mail/v1/`. Stripping the trailing `/v1` is what makes those resolve. */ export declare function apiFetchRoot(ctx: McpContext, path: string, options?: RequestInit): Promise; /** * Unwrap the `{ success, data }` envelope used by MisarMail's internal routes. * * Tools should return the payload, not the envelope — an agent reading * `{"success":true,"data":{…}}` wastes a turn drilling into `.data`. */ export declare function unwrap(body: unknown): T; //# sourceMappingURL=api-client.d.ts.map