Minimal fetch-like function signature covering only what the SDK uses.
Defined locally so consumers without the DOM lib (e.g. Node-only projects
with lib: ["ES2022"] and older @types/node) don't pull globalThis.fetch,
Response, or RequestInit into their emitted .d.ts when they import
this SDK's types.
At runtime the SDK still calls globalThis.fetch by default; this type is
purely a structural subset so any spec-compatible fetch implementation
(node's built-in, undici, whatwg-fetch, a user mock, etc.) satisfies it.
Minimal fetch-like function signature covering only what the SDK uses.
Defined locally so consumers without the DOM lib (e.g. Node-only projects with
lib: ["ES2022"]and older@types/node) don't pullglobalThis.fetch,Response, orRequestInitinto their emitted.d.tswhen they import this SDK's types.At runtime the SDK still calls
globalThis.fetchby default; this type is purely a structural subset so any spec-compatiblefetchimplementation (node's built-in, undici, whatwg-fetch, a user mock, etc.) satisfies it.