import type { ClientRuntimeTransport } from "../shared/runtime-config.js"; export type ApiMethod = "get" | "post" | "put" | "patch" | "delete" | "head" | "options"; /** A shared DTO can be supplied as json; validation remains server-owned. */ export type ApiRequestOptions = Omit & ({ json: unknown; body?: never; } | { json?: never; body?: BodyInit | null; }); /** Awaiting the call preserves native Fetch response and body semantics. */ export interface ApiCall extends Promise { /** T describes the JSON wire value; this does not validate the response. */ json(): Promise; } export type ApiClient = Readonly ApiCall>>; export interface ApiClientOptions extends ClientRuntimeTransport { fetch?: typeof globalThis.fetch; } //# sourceMappingURL=types.d.ts.map